Skip to content

Commit

Permalink
Merge pull request #267 from ConductionNL/feature/WOO-56/WCAG-siteimp…
Browse files Browse the repository at this point in the history
…rove

feature/WOO-56/WCAG-siteimprove
  • Loading branch information
remko48 authored Feb 13, 2024
2 parents b1869b5 + 92fb2d8 commit 0e2736e
Show file tree
Hide file tree
Showing 7 changed files with 1,688 additions and 3,756 deletions.
2 changes: 1 addition & 1 deletion pwa/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.onCreateBabelConfig = ({ actions }) => {
};

exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => {
if (stage === "develop") {
if (stage === "develop" || stage === "build-javascript") {
const config = getConfig();
const miniCssExtractPlugin = config.plugins.find(
(plugin) => plugin.constructor.name === "MiniCssExtractPlugin",
Expand Down
2 changes: 1 addition & 1 deletion pwa/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => {
src={window.sessionStorage.getItem("ANALYTICS_URL")}
/>
) : (
<script key={0} id="analytics" async />
<script key={0} id="analytics" />
),
];
setHeadComponents(HeadComponents);
Expand Down
5,428 changes: 1,680 additions & 3,748 deletions pwa/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"prepare": "cd .. && husky install"
},
"dependencies": {
"@conduction/components": "2.2.46",
"@conduction/components": "2.2.47",
"@conduction/theme": "1.1.21",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "6.5.1",
Expand Down
6 changes: 3 additions & 3 deletions pwa/src/hooks/htmlParser/anchor/getAnchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import _ from "lodash";
import { Link } from "@utrecht/component-library-react/dist/css-module";
import { navigate } from "gatsby";
import { domToReact } from "html-react-parser";
import { TGitHubDirectory } from "../../useGitHubDirectories";
import { TMarkdownDirectory } from "../../useMarkdownDirectories";

export const getAnchor = (
props: any,
children: any,
options: any,
directories: TGitHubDirectory[],
directories: TMarkdownDirectory[],
location: string,
) => {
const conditions = ["://", "tel:", "mailto:"];
Expand Down Expand Up @@ -55,7 +55,7 @@ export const getAnchor = (
return <Link {...attributes}>{domToReact(children, options)}</Link>;
};

const handleInternalLinks = (props: any, targetFile: string, location: string, directories: TGitHubDirectory[]) => {
const handleInternalLinks = (props: any, targetFile: string, location: string, directories: TMarkdownDirectory[]) => {
// Internal Links: same directory
if (!props.href.includes("/")) {
const targetDirectory = _.upperFirst(location.split("/").reverse()[1]);
Expand Down
2 changes: 1 addition & 1 deletion pwa/src/styling/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@import "../../node_modules/@nl-design-system-unstable/leidschendam-voorburg-design-tokens/dist/index.css";
@import "../../node_modules/@nl-design-system-unstable/nijmegen-design-tokens/dist/index.css";
@import "../../node_modules/@nl-design-system-unstable/noordoostpolder-design-tokens/dist/index.css";
@import "../../node_modules/@nl-design-system-unstable/provincie-zuid-holland-design-tokens/dist/index.css";
/* @import "../../node_modules/@nl-design-system-unstable/provincie-zuid-holland-design-tokens/dist/index.css"; */
/* @import "../../node_modules/@nl-design-system-unstable/riddeliemers-design-tokens/dist/index.css"; */ /* Import errors */
@import "../../node_modules/@nl-design-system-unstable/rotterdam-design-tokens/dist/index.css";
@import "../../node_modules/@nl-design-system-unstable/stedebroec-design-tokens/dist/index.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}

.categoryAndMunicipality {
text-wrap: nowrap;
white-space: nowrap;
}

.description {
Expand Down

0 comments on commit 0e2736e

Please sign in to comment.