-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ActionList sub components) Convert to CSS Modules (#5398)
* copy * copy all * fix padding * add heading * fix selectpanel story * vrt * alignment * moar fixes * dev stories * tests * moving tests around * tests * tests * Apply suggestions from code review * prettier * lint * test(vrt): update snapshots * fix nesting issue * reset * test(vrt): update snapshots * vrt * cleanup * reset * test(vrt): update snapshots * very sad and annoying * snaps * Create dirty-nails-applaud.md * reduce margin on divider * remove truncation e2e test * snappers * lint * test(vrt): update snapshots * fix navlist group * Update packages/react/src/ActionList/Visuals.tsx Co-authored-by: Josh Black <joshblack@github.com> * test classname on visuals * add e2e * use common ff * feat(NavList) Convert to CSS Modules (#5424) * navlist * fix sub item * fix margin * fixies * Create quick-items-hunt.md * not sure how to make this test pass * prettier * logging test failure * reset * test(vrt): update snapshots * remove flaky test * fix changeset * fix active color var * big oops * remove transitions for now * haha * fix trailing visual as text + add test * test(vrt): update snapshots --------- Co-authored-by: langermank <langermank@users.noreply.github.com> Co-authored-by: Josh Black <joshblack@github.com>
- Loading branch information
1 parent
f03ae58
commit 215d8e6
Showing
105 changed files
with
2,382 additions
and
1,026 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/react": minor | ||
--- | ||
|
||
Convert ActionList, ActionList sub components and NavList to CSS Modules |
Binary file modified
BIN
+1 Byte
(100%)
...tionList.test.ts-snapshots/ActionList-Full-Variant-dark-high-contrast-linux.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
+4 Bytes
(100%)
...ionList.test.ts-snapshots/ActionList-Full-Variant-light-high-contrast-linux.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.37 KB
(92%)
...ActionList.test.ts-snapshots/ActionList-Inactive-Item-dark-colorblind-linux.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.31 KB
(92%)
...nts/ActionList.test.ts-snapshots/ActionList-Inactive-Item-dark-dimmed-linux.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.44 KB
(92%)
...ionList.test.ts-snapshots/ActionList-Inactive-Item-dark-high-contrast-linux.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.36 KB
(92%)
...components/ActionList.test.ts-snapshots/ActionList-Inactive-Item-dark-linux.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.37 KB
(92%)
...ActionList.test.ts-snapshots/ActionList-Inactive-Item-dark-tritanopia-linux.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.47 KB
(91%)
...ctionList.test.ts-snapshots/ActionList-Inactive-Item-light-colorblind-linux.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.44 KB
(92%)
...onList.test.ts-snapshots/ActionList-Inactive-Item-light-high-contrast-linux.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.39 KB
(92%)
...omponents/ActionList.test.ts-snapshots/ActionList-Inactive-Item-light-linux.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.47 KB
(91%)
...ctionList.test.ts-snapshots/ActionList-Inactive-Item-light-tritanopia-linux.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
+0 Bytes
(100%)
...ctionList.test.ts-snapshots/ActionList-Simple-List-dark-high-contrast-linux.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
+2 Bytes
(100%)
...tionList.test.ts-snapshots/ActionList-Simple-List-light-high-contrast-linux.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
+0 Bytes
(100%)
...onList.test.ts-snapshots/ActionList-Single-Divider-dark-high-contrast-linux.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
+2 Bytes
(100%)
...nList.test.ts-snapshots/ActionList-Single-Divider-light-high-contrast-linux.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
+0 Bytes
(100%)
...onList.test.ts-snapshots/Group-Heading-with-Classname-dark-colorblind-linux.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
-5 Bytes
(100%)
...ActionList.test.ts-snapshots/Group-Heading-with-Classname-dark-dimmed-linux.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
-34 Bytes
(100%)
...ist.test.ts-snapshots/Group-Heading-with-Classname-dark-high-contrast-linux.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
+0 Bytes
(100%)
...onents/ActionList.test.ts-snapshots/Group-Heading-with-Classname-dark-linux.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
+0 Bytes
(100%)
...onList.test.ts-snapshots/Group-Heading-with-Classname-dark-tritanopia-linux.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
+0 Bytes
(100%)
...nList.test.ts-snapshots/Group-Heading-with-Classname-light-colorblind-linux.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 Byte
(100%)
...st.test.ts-snapshots/Group-Heading-with-Classname-light-high-contrast-linux.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
+0 Bytes
(100%)
...nents/ActionList.test.ts-snapshots/Group-Heading-with-Classname-light-linux.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
+0 Bytes
(100%)
...nList.test.ts-snapshots/Group-Heading-with-Classname-light-tritanopia-linux.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
+0 Bytes
(100%)
...s/ActionList.test.ts-snapshots/Heading-with-Classname-dark-colorblind-linux.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
+0 Bytes
(100%)
...nents/ActionList.test.ts-snapshots/Heading-with-Classname-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ctionList.test.ts-snapshots/Heading-with-Classname-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...s/components/ActionList.test.ts-snapshots/Heading-with-Classname-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...s/ActionList.test.ts-snapshots/Heading-with-Classname-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
.../ActionList.test.ts-snapshots/Heading-with-Classname-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...tionList.test.ts-snapshots/Heading-with-Classname-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
.../components/ActionList.test.ts-snapshots/Heading-with-Classname-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
.../ActionList.test.ts-snapshots/Heading-with-Classname-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.7 KB
...onents/ActionList.test.ts-snapshots/Link-Item-Options-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.8 KB
...components/ActionList.test.ts-snapshots/Link-Item-Options-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.4 KB
...nts/ActionList.test.ts-snapshots/Link-Item-Options-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.7 KB
...pshots/components/ActionList.test.ts-snapshots/Link-Item-Options-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.7 KB
...onents/ActionList.test.ts-snapshots/Link-Item-Options-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.7 KB
...nents/ActionList.test.ts-snapshots/Link-Item-Options-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.6 KB
...ts/ActionList.test.ts-snapshots/Link-Item-Options-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.7 KB
...shots/components/ActionList.test.ts-snapshots/Link-Item-Options-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+29.7 KB
...nents/ActionList.test.ts-snapshots/Link-Item-Options-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
.../ActionList.test.ts-snapshots/Visuals-with-Classnames-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
...ents/ActionList.test.ts-snapshots/Visuals-with-Classnames-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
...tionList.test.ts-snapshots/Visuals-with-Classnames-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
.../components/ActionList.test.ts-snapshots/Visuals-with-Classnames-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
.../ActionList.test.ts-snapshots/Visuals-with-Classnames-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
...ActionList.test.ts-snapshots/Visuals-with-Classnames-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.25 KB
...ionList.test.ts-snapshots/Visuals-with-Classnames-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
...components/ActionList.test.ts-snapshots/Visuals-with-Classnames-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
...ActionList.test.ts-snapshots/Visuals-with-Classnames-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...mponents/NavList.test.ts-snapshots/NavList-With-Group-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...s/components/NavList.test.ts-snapshots/NavList-With-Group-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...nents/NavList.test.ts-snapshots/NavList-With-Group-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...napshots/components/NavList.test.ts-snapshots/NavList-With-Group-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...mponents/NavList.test.ts-snapshots/NavList-With-Group-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...ponents/NavList.test.ts-snapshots/NavList-With-Group-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
...ents/NavList.test.ts-snapshots/NavList-With-Group-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...apshots/components/NavList.test.ts-snapshots/NavList-With-Group-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...ponents/NavList.test.ts-snapshots/NavList-With-Group-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+75 Bytes
(100%)
...ents/NavList.test.ts-snapshots/NavList-With-Sub-Items-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+54 Bytes
(100%)
...mponents/NavList.test.ts-snapshots/NavList-With-Sub-Items-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+49 Bytes
(100%)
...s/NavList.test.ts-snapshots/NavList-With-Sub-Items-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+75 Bytes
(100%)
...hots/components/NavList.test.ts-snapshots/NavList-With-Sub-Items-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+75 Bytes
(100%)
...ents/NavList.test.ts-snapshots/NavList-With-Sub-Items-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+59 Bytes
(100%)
...nts/NavList.test.ts-snapshots/NavList-With-Sub-Items-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+49 Bytes
(100%)
.../NavList.test.ts-snapshots/NavList-With-Sub-Items-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+59 Bytes
(100%)
...ots/components/NavList.test.ts-snapshots/NavList-With-Sub-Items-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+59 Bytes
(100%)
...nts/NavList.test.ts-snapshots/NavList-With-Sub-Items-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...List.test.ts-snapshots/NavList-With-Title-and-Heading-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
.../NavList.test.ts-snapshots/NavList-With-Title-and-Heading-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...t.test.ts-snapshots/NavList-With-Title-and-Heading-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ponents/NavList.test.ts-snapshots/NavList-With-Title-and-Heading-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...List.test.ts-snapshots/NavList-With-Title-and-Heading-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ist.test.ts-snapshots/NavList-With-Title-and-Heading-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
....test.ts-snapshots/NavList-With-Title-and-Heading-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...onents/NavList.test.ts-snapshots/NavList-With-Title-and-Heading-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ist.test.ts-snapshots/NavList-With-Title-and-Heading-light-tritanopia-linux.png
Oops, something went wrong.
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
11 changes: 11 additions & 0 deletions
11
packages/postcss-preset-primer/src/mixins/activeIndicatorLine.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@define-mixin activeIndicatorLine { | ||
position: absolute; | ||
top: calc(50% - var(--base-size-12)); | ||
left: calc(-1 * var(--base-size-8)); | ||
width: var(--base-size-4); | ||
height: var(--base-size-24); | ||
content: ''; | ||
/* stylelint-disable-next-line primer/colors */ | ||
background: var(--borderColor-accent-emphasis); | ||
border-radius: var(--borderRadius-medium); | ||
} |
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
Oops, something went wrong.