Skip to content

Commit 8df44c0

Browse files
committed
Update to @gouvfr/dsfr 1.9.0
1 parent 09135c3 commit 8df44c0

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
"tsafe": "^1.4.0"
6767
},
6868
"devDependencies": {
69+
"@gouvfr/dsfr": "1.9.0",
6970
"@babel/core": "^7.20.2",
7071
"@emotion/react": "^11.10.4",
7172
"@emotion/styled": "^11.10.4",
72-
"@gouvfr/dsfr": "1.8.5",
7373
"@mui/icons-material": "^5.11.0",
7474
"@mui/material": "^5.11.0",
7575
"@storybook/addon-a11y": "^6.5.16",

src/scripts/build/cssToTs/cssVariable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const createGetCssVariable = memoize((rawCssCode: string) => {
4747
case "light":
4848
return "";
4949
case "dark":
50-
return `:where([${data_fr_theme}="dark"])`;
50+
return `:where([${data_fr_theme}=dark])`;
5151
}
5252
})()
5353
)

test/runtime/scripts/colorDecisions/generateGetColorDecisionsTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ it("Generates the correct TS code for breakpoints", () => {
1717
--background-contrast-overlap-grey: var(--grey-950-150);
1818
}
1919
20-
:root:where([data-fr-theme="dark"]) {
20+
:root:where([data-fr-theme=dark]) {
2121
--grey-1000-50-hover: #000000;
2222
--grey-1000-50: #000000;
2323
--orange-terre-battue-850-200: #000000;

test/runtime/scripts/colorDecisions/parseColorDecision.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ it("Color decisions to be successfully parsed", () => {
1818
--background-contrast-overlap-grey: var(--grey-950-150);
1919
}
2020
21-
:root:where([data-fr-theme="dark"]) {
21+
:root:where([data-fr-theme=dark]) {
2222
--grey-1000-50-hover: #000000;
2323
--grey-1000-50: #000000;
2424
--orange-terre-battue-850-200: #000000;

test/runtime/scripts/colorDecisions/parseColorDecisionName.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe("Color decision css variable correctly parsed", () => {
2121
2222
}
2323
24-
:root:where([data-fr-theme="dark"]) {
24+
:root:where([data-fr-theme=dark]) {
2525
--grey-1000-50-hover: #000000;
2626
--grey-1000-50: #000000;
2727
--orange-terre-battue-850-200: #000000;

test/runtime/scripts/colorOptions/generateGetColorOptionsTsCode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ it("Generate the correct TS code for colors options", () => {
2727
--background-default-grey: var(--grey-1000-50);
2828
--background-default-grey-hover: var(--grey-1000-50-hover);
2929
}
30-
:root:where([data-fr-theme="dark"]) {
30+
:root:where([data-fr-theme=dark]) {
3131
--name1-name2-111-222: #100000;
3232
--name1-name2-111-222-hover: #200000;
3333
--name1-name2-sun-111-222: #300000;

test/runtime/scripts/colorOptions/parseColorOptions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ it("Successfully parse color options", () => {
2828
--background-default-grey: var(--grey-1000-50);
2929
--background-default-grey-hover: var(--grey-1000-50-hover);
3030
}
31-
:root:where([data-fr-theme="dark"]) {
31+
:root:where([data-fr-theme=dark]) {
3232
--name1-name2-111-222: #100000;
3333
--name1-name2-111-222-hover: #200000;
3434
--name1-name2-sun-111-222: #300000;

test/runtime/scripts/cssVariable.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const rawCssCode = `
1515
--my-var-4: #ffffff;
1616
}
1717
18-
:root:where([data-fr-theme="dark"]) {
18+
:root:where([data-fr-theme=dark]) {
1919
--my-var-2: #000000;
2020
}
2121
@@ -24,7 +24,7 @@ const rawCssCode = `
2424
2525
@media (min-width: 48em) {
2626
27-
:root:where([data-fr-theme="dark"]) {
27+
:root:where([data-fr-theme=dark]) {
2828
--my-var-4: #000000;
2929
}
3030

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,10 +1342,10 @@
13421342
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
13431343
integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==
13441344

1345-
"@gouvfr/dsfr@1.8.5":
1346-
version "1.8.5"
1347-
resolved "https://registry.yarnpkg.com/@gouvfr/dsfr/-/dsfr-1.8.5.tgz#e99d095e99debcce0c41db18989637290d588b78"
1348-
integrity sha512-29L+THvWmYJXztPa0Os5TS9yD2WQbrH7VnCKxkyUXQZQ+6lsGebtz0GdCnLexOWDfCn1y53Mh7+/ihxI/z0Vjw==
1345+
"@gouvfr/dsfr@1.9.0":
1346+
version "1.9.0"
1347+
resolved "https://registry.yarnpkg.com/@gouvfr/dsfr/-/dsfr-1.9.0.tgz#5d6b97328b8c239d0d4383708a5fa59fd5290e4c"
1348+
integrity sha512-CWckBrvCL28QV2K1+GK/AjW40aGHmd1oXnCSFRD4iRhsIgXkE/+t6pH24L+6BKVBCSYfp2RTGAgRwVN06PqGMw==
13491349

13501350
"@humanwhocodes/config-array@^0.5.0":
13511351
version "0.5.0"

0 commit comments

Comments
 (0)