-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WNMGDS-2486] Fix high specificity of list normalization rules and fi…
…x bare list styles (#2649) * Fix high specificity of our list normalization rules and fix bare class 1. Use `:where` in our `ol:not([role])` selector so our reset styles don't have a greater specificity than application-applied classes! 2. We actually want to let teams apply a `role="list"` to `ds-c-list--bare` lists, which are a little bit different historically from completely unstyled lists. Historically, we've applied the standard item spacing to bare lists vs completely unstyled lists. So I've modified our reset rules to make sure bare lists get the base normalization styles applied. (I also updated our list story to show what applying `role="list"` to a bare list would look like * Add a comment about the change * Update VRT refs * Get rid of redundant stories and update the doc page examples * Change our strategy so we don't reference classes in the reset Having exceptions for the bare list class makes it overly complex and less clear
- Loading branch information
Showing
106 changed files
with
77 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-420 Bytes
(97%)
...wser/snapshots/foundations-typography-list--all-lists-cmsgov--Mobile-Chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-489 Bytes
(97%)
...shots/foundations-typography-list--all-lists-cmsgov--chromium-forced-colors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-436 Bytes
(97%)
...s/browser/snapshots/foundations-typography-list--all-lists-cmsgov--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.53 KB
(95%)
tests/browser/snapshots/foundations-typography-list--all-lists-cmsgov--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-428 Bytes
(97%)
tests/browser/snapshots/foundations-typography-list--all-lists-cmsgov--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-420 Bytes
(97%)
...rowser/snapshots/foundations-typography-list--all-lists-core--Mobile-Chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-489 Bytes
(97%)
...apshots/foundations-typography-list--all-lists-core--chromium-forced-colors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-436 Bytes
(97%)
tests/browser/snapshots/foundations-typography-list--all-lists-core--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.53 KB
(95%)
tests/browser/snapshots/foundations-typography-list--all-lists-core--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-428 Bytes
(97%)
tests/browser/snapshots/foundations-typography-list--all-lists-core--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-420 Bytes
(97%)
.../snapshots/foundations-typography-list--all-lists-healthcare--Mobile-Chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-489 Bytes
(97%)
...s/foundations-typography-list--all-lists-healthcare--chromium-forced-colors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-436 Bytes
(97%)
...owser/snapshots/foundations-typography-list--all-lists-healthcare--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.53 KB
(95%)
...rowser/snapshots/foundations-typography-list--all-lists-healthcare--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-428 Bytes
(97%)
...browser/snapshots/foundations-typography-list--all-lists-healthcare--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-406 Bytes
(97%)
...er/snapshots/foundations-typography-list--all-lists-medicare--Mobile-Chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-338 Bytes
(98%)
...ots/foundations-typography-list--all-lists-medicare--chromium-forced-colors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-349 Bytes
(98%)
...browser/snapshots/foundations-typography-list--all-lists-medicare--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.06 KB
(97%)
.../browser/snapshots/foundations-typography-list--all-lists-medicare--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-401 Bytes
(98%)
...s/browser/snapshots/foundations-typography-list--all-lists-medicare--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-496 Bytes
(97%)
...pshots/foundations-typography-list--all-lists-on-dark-cmsgov--Mobile-Chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-489 Bytes
(97%)
...undations-typography-list--all-lists-on-dark-cmsgov--chromium-forced-colors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-468 Bytes
(97%)
...r/snapshots/foundations-typography-list--all-lists-on-dark-cmsgov--chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-981 Bytes
(97%)
...er/snapshots/foundations-typography-list--all-lists-on-dark-cmsgov--firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-420 Bytes
(97%)
...ser/snapshots/foundations-typography-list--all-lists-on-dark-cmsgov--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-501 Bytes
(97%)
...napshots/foundations-typography-list--all-lists-on-dark-core--Mobile-Chrome.png
Oops, something went wrong.
Binary file modified
BIN
-489 Bytes
(97%)
...foundations-typography-list--all-lists-on-dark-core--chromium-forced-colors.png
Oops, something went wrong.
Binary file modified
BIN
-440 Bytes
(97%)
...ser/snapshots/foundations-typography-list--all-lists-on-dark-core--chromium.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(97%)
...wser/snapshots/foundations-typography-list--all-lists-on-dark-core--firefox.png
Oops, something went wrong.
Binary file modified
BIN
-417 Bytes
(97%)
...owser/snapshots/foundations-typography-list--all-lists-on-dark-core--webkit.png
Oops, something went wrong.
Binary file modified
BIN
-501 Bytes
(97%)
...ts/foundations-typography-list--all-lists-on-dark-healthcare--Mobile-Chrome.png
Oops, something went wrong.
Binary file modified
BIN
-489 Bytes
(97%)
...tions-typography-list--all-lists-on-dark-healthcare--chromium-forced-colors.png
Oops, something went wrong.
Binary file modified
BIN
-440 Bytes
(97%)
...apshots/foundations-typography-list--all-lists-on-dark-healthcare--chromium.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(97%)
...napshots/foundations-typography-list--all-lists-on-dark-healthcare--firefox.png
Oops, something went wrong.
Binary file modified
BIN
-417 Bytes
(97%)
...snapshots/foundations-typography-list--all-lists-on-dark-healthcare--webkit.png
Oops, something went wrong.
Binary file modified
BIN
-436 Bytes
(97%)
...hots/foundations-typography-list--all-lists-on-dark-medicare--Mobile-Chrome.png
Oops, something went wrong.
Binary file modified
BIN
-338 Bytes
(98%)
...dations-typography-list--all-lists-on-dark-medicare--chromium-forced-colors.png
Oops, something went wrong.
Binary file modified
BIN
-385 Bytes
(98%)
...snapshots/foundations-typography-list--all-lists-on-dark-medicare--chromium.png
Oops, something went wrong.
Binary file modified
BIN
-2.08 KB
(94%)
.../snapshots/foundations-typography-list--all-lists-on-dark-medicare--firefox.png
Oops, something went wrong.
Binary file modified
BIN
-442 Bytes
(97%)
...r/snapshots/foundations-typography-list--all-lists-on-dark-medicare--webkit.png
Oops, something went wrong.
Binary file removed
BIN
-6.34 KB
...r/snapshots/foundations-typography-list--ordered-list-cmsgov--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.05 KB
...ts/foundations-typography-list--ordered-list-cmsgov--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.05 KB
...rowser/snapshots/foundations-typography-list--ordered-list-cmsgov--chromium.png
Diff not rendered.
Binary file removed
BIN
-22.5 KB
...browser/snapshots/foundations-typography-list--ordered-list-cmsgov--firefox.png
Diff not rendered.
Binary file removed
BIN
-7.82 KB
.../browser/snapshots/foundations-typography-list--ordered-list-cmsgov--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.34 KB
...ser/snapshots/foundations-typography-list--ordered-list-core--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.05 KB
...hots/foundations-typography-list--ordered-list-core--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.05 KB
.../browser/snapshots/foundations-typography-list--ordered-list-core--chromium.png
Diff not rendered.
Binary file removed
BIN
-22.5 KB
...s/browser/snapshots/foundations-typography-list--ordered-list-core--firefox.png
Diff not rendered.
Binary file removed
BIN
-7.82 KB
tests/browser/snapshots/foundations-typography-list--ordered-list-core--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.34 KB
...apshots/foundations-typography-list--ordered-list-healthcare--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.05 KB
...oundations-typography-list--ordered-list-healthcare--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.05 KB
...er/snapshots/foundations-typography-list--ordered-list-healthcare--chromium.png
Diff not rendered.
Binary file removed
BIN
-22.5 KB
...ser/snapshots/foundations-typography-list--ordered-list-healthcare--firefox.png
Diff not rendered.
Binary file removed
BIN
-7.82 KB
...wser/snapshots/foundations-typography-list--ordered-list-healthcare--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.62 KB
...snapshots/foundations-typography-list--ordered-list-medicare--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.38 KB
.../foundations-typography-list--ordered-list-medicare--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.35 KB
...wser/snapshots/foundations-typography-list--ordered-list-medicare--chromium.png
Diff not rendered.
Binary file removed
BIN
-23.4 KB
...owser/snapshots/foundations-typography-list--ordered-list-medicare--firefox.png
Diff not rendered.
Binary file removed
BIN
-8.05 KB
...rowser/snapshots/foundations-typography-list--ordered-list-medicare--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.81 KB
...snapshots/foundations-typography-list--unordered-list-cmsgov--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.47 KB
.../foundations-typography-list--unordered-list-cmsgov--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.51 KB
...wser/snapshots/foundations-typography-list--unordered-list-cmsgov--chromium.png
Diff not rendered.
Binary file removed
BIN
-24 KB
...owser/snapshots/foundations-typography-list--unordered-list-cmsgov--firefox.png
Diff not rendered.
Binary file removed
BIN
-8.21 KB
...rowser/snapshots/foundations-typography-list--unordered-list-cmsgov--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.81 KB
...r/snapshots/foundations-typography-list--unordered-list-core--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.47 KB
...ts/foundations-typography-list--unordered-list-core--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.51 KB
...rowser/snapshots/foundations-typography-list--unordered-list-core--chromium.png
Diff not rendered.
Binary file removed
BIN
-24 KB
...browser/snapshots/foundations-typography-list--unordered-list-core--firefox.png
Diff not rendered.
Binary file removed
BIN
-8.21 KB
.../browser/snapshots/foundations-typography-list--unordered-list-core--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.81 KB
...shots/foundations-typography-list--unordered-list-healthcare--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.47 KB
...ndations-typography-list--unordered-list-healthcare--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.51 KB
.../snapshots/foundations-typography-list--unordered-list-healthcare--chromium.png
Diff not rendered.
Binary file removed
BIN
-24 KB
...r/snapshots/foundations-typography-list--unordered-list-healthcare--firefox.png
Diff not rendered.
Binary file removed
BIN
-8.21 KB
...er/snapshots/foundations-typography-list--unordered-list-healthcare--webkit.png
Diff not rendered.
Binary file removed
BIN
-7.16 KB
...apshots/foundations-typography-list--unordered-list-medicare--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.86 KB
...oundations-typography-list--unordered-list-medicare--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.86 KB
...er/snapshots/foundations-typography-list--unordered-list-medicare--chromium.png
Diff not rendered.
Binary file removed
BIN
-23.7 KB
...ser/snapshots/foundations-typography-list--unordered-list-medicare--firefox.png
Diff not rendered.
Binary file removed
BIN
-8.49 KB
...wser/snapshots/foundations-typography-list--unordered-list-medicare--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.41 KB
.../snapshots/foundations-typography-list--unstyled-list-cmsgov--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.15 KB
...s/foundations-typography-list--unstyled-list-cmsgov--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.14 KB
...owser/snapshots/foundations-typography-list--unstyled-list-cmsgov--chromium.png
Diff not rendered.
Binary file removed
BIN
-23.3 KB
...rowser/snapshots/foundations-typography-list--unstyled-list-cmsgov--firefox.png
Diff not rendered.
Binary file removed
BIN
-7.9 KB
...browser/snapshots/foundations-typography-list--unstyled-list-cmsgov--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.41 KB
...er/snapshots/foundations-typography-list--unstyled-list-core--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.15 KB
...ots/foundations-typography-list--unstyled-list-core--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.14 KB
...browser/snapshots/foundations-typography-list--unstyled-list-core--chromium.png
Diff not rendered.
Binary file removed
BIN
-23.3 KB
.../browser/snapshots/foundations-typography-list--unstyled-list-core--firefox.png
Diff not rendered.
Binary file removed
BIN
-7.9 KB
...s/browser/snapshots/foundations-typography-list--unstyled-list-core--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.41 KB
...pshots/foundations-typography-list--unstyled-list-healthcare--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.15 KB
...undations-typography-list--unstyled-list-healthcare--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.14 KB
...r/snapshots/foundations-typography-list--unstyled-list-healthcare--chromium.png
Diff not rendered.
Binary file removed
BIN
-23.3 KB
...er/snapshots/foundations-typography-list--unstyled-list-healthcare--firefox.png
Diff not rendered.
Binary file removed
BIN
-7.9 KB
...ser/snapshots/foundations-typography-list--unstyled-list-healthcare--webkit.png
Diff not rendered.
Binary file removed
BIN
-6.82 KB
...napshots/foundations-typography-list--unstyled-list-medicare--Mobile-Chrome.png
Diff not rendered.
Binary file removed
BIN
-9.49 KB
...foundations-typography-list--unstyled-list-medicare--chromium-forced-colors.png
Diff not rendered.
Binary file removed
BIN
-9.52 KB
...ser/snapshots/foundations-typography-list--unstyled-list-medicare--chromium.png
Diff not rendered.
Binary file removed
BIN
-23.4 KB
...wser/snapshots/foundations-typography-list--unstyled-list-medicare--firefox.png
Diff not rendered.
Binary file removed
BIN
-8.22 KB
...owser/snapshots/foundations-typography-list--unstyled-list-medicare--webkit.png
Diff not rendered.