-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(CounterLabel): update to use CSS Modules behind flag (#4965)
* refactor(CounterLabel): update to use CSS Modules behind flag * chore: add changeset * test: update snapshots and remove duplicate tests * chore: update css modules * Update packages/react/src/CounterLabel/CounterLabel.module.css Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com> * Update packages/react/src/CounterLabel/CounterLabel.module.css Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com> * test(e2e): update e2e tests for counter label * chore: fix spacing to use original px value * chore: update size to match rails * chore: add fallbacks in styled components case * Update packages/react/src/CounterLabel/CounterLabel.tsx Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com> * test: update snapshots * test: update story ids to include features * test(vrt): update snapshots * chore: update import for CounterLabel --------- Co-authored-by: Josh Black <joshblack@users.noreply.github.com> Co-authored-by: Katie Langerman <18661030+langermank@users.noreply.github.com>
- Loading branch information
1 parent
954170b
commit 5426a9a
Showing
143 changed files
with
225 additions
and
139 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 | ||
--- | ||
|
||
Update CounterLabel to use CSS Modules behind feature flag |
Binary file modified
BIN
+31 Bytes
(100%)
...ts/Button.test.ts-snapshots/Button-Invisible-Variants-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
+29 Bytes
(100%)
...onents/Button.test.ts-snapshots/Button-Invisible-Variants-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
+25 Bytes
(100%)
...Button.test.ts-snapshots/Button-Invisible-Variants-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
+59 Bytes
(100%)
...ts/components/Button.test.ts-snapshots/Button-Invisible-Variants-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
+31 Bytes
(100%)
...ts/Button.test.ts-snapshots/Button-Invisible-Variants-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
+2 Bytes
(100%)
...s/Button.test.ts-snapshots/Button-Invisible-Variants-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
+7 Bytes
(100%)
...utton.test.ts-snapshots/Button-Invisible-Variants-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
+7 Bytes
(100%)
...s/components/Button.test.ts-snapshots/Button-Invisible-Variants-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
+2 Bytes
(100%)
...s/Button.test.ts-snapshots/Button-Invisible-Variants-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%)
...ents/Button.test.ts-snapshots/Button-Trailing-Counter-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 Byte
(100%)
...mponents/Button.test.ts-snapshots/Button-Trailing-Counter-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
+6 Bytes
(100%)
...s/Button.test.ts-snapshots/Button-Trailing-Counter-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%)
...hots/components/Button.test.ts-snapshots/Button-Trailing-Counter-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%)
...ents/Button.test.ts-snapshots/Button-Trailing-Counter-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
-22 Bytes
(100%)
...nts/Button.test.ts-snapshots/Button-Trailing-Counter-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
-52 Bytes
(100%)
.../Button.test.ts-snapshots/Button-Trailing-Counter-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
-22 Bytes
(100%)
...ots/components/Button.test.ts-snapshots/Button-Trailing-Counter-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
-22 Bytes
(100%)
...nts/Button.test.ts-snapshots/Button-Trailing-Counter-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
+8 Bytes
(100%)
...ts/components/Button.test.ts-snapshots/Button-sx-prop-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
+6 Bytes
(100%)
...pshots/components/Button.test.ts-snapshots/Button-sx-prop-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
+10 Bytes
(100%)
...components/Button.test.ts-snapshots/Button-sx-prop-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
+8 Bytes
(100%)
...ght/snapshots/components/Button.test.ts-snapshots/Button-sx-prop-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
+8 Bytes
(100%)
...ts/components/Button.test.ts-snapshots/Button-sx-prop-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
+3 Bytes
(100%)
...s/components/Button.test.ts-snapshots/Button-sx-prop-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
+9 Bytes
(100%)
...omponents/Button.test.ts-snapshots/Button-sx-prop-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
+3 Bytes
(100%)
...ht/snapshots/components/Button.test.ts-snapshots/Button-sx-prop-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 Bytes
(100%)
...s/components/Button.test.ts-snapshots/Button-sx-prop-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-45 Bytes
(99%)
...s/CounterLabel.test.ts-snapshots/CounterLabel-Default-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-62 Bytes
(99%)
...nents/CounterLabel.test.ts-snapshots/CounterLabel-Default-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
...ounterLabel.test.ts-snapshots/CounterLabel-Default-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-45 Bytes
(99%)
...s/components/CounterLabel.test.ts-snapshots/CounterLabel-Default-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-45 Bytes
(99%)
...s/CounterLabel.test.ts-snapshots/CounterLabel-Default-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-9 Bytes
(100%)
.../CounterLabel.test.ts-snapshots/CounterLabel-Default-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
...unterLabel.test.ts-snapshots/CounterLabel-Default-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(100%)
.../components/CounterLabel.test.ts-snapshots/CounterLabel-Default-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-9 Bytes
(100%)
.../CounterLabel.test.ts-snapshots/CounterLabel-Default-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
...terLabel.test.ts-snapshots/CounterLabel-Primary-Theme-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+40 Bytes
(100%)
...CounterLabel.test.ts-snapshots/CounterLabel-Primary-Theme-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
...Label.test.ts-snapshots/CounterLabel-Primary-Theme-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
...onents/CounterLabel.test.ts-snapshots/CounterLabel-Primary-Theme-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
...terLabel.test.ts-snapshots/CounterLabel-Primary-Theme-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10 Bytes
(100%)
...erLabel.test.ts-snapshots/CounterLabel-Primary-Theme-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-109 Bytes
(98%)
...abel.test.ts-snapshots/CounterLabel-Primary-Theme-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10 Bytes
(100%)
...nents/CounterLabel.test.ts-snapshots/CounterLabel-Primary-Theme-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+10 Bytes
(100%)
...erLabel.test.ts-snapshots/CounterLabel-Primary-Theme-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.51 KB
...rLabel.test.ts-snapshots/CounterLabel-Secondary-Theme-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.5 KB
...unterLabel.test.ts-snapshots/CounterLabel-Secondary-Theme-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.7 KB
...bel.test.ts-snapshots/CounterLabel-Secondary-Theme-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.51 KB
...ents/CounterLabel.test.ts-snapshots/CounterLabel-Secondary-Theme-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.51 KB
...rLabel.test.ts-snapshots/CounterLabel-Secondary-Theme-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.44 KB
...Label.test.ts-snapshots/CounterLabel-Secondary-Theme-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.7 KB
...el.test.ts-snapshots/CounterLabel-Secondary-Theme-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.44 KB
...nts/CounterLabel.test.ts-snapshots/CounterLabel-Secondary-Theme-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+5.44 KB
...Label.test.ts-snapshots/CounterLabel-Secondary-Theme-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+39 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+55 Bytes
(100%)
...PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
...der.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
...onents/PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+50 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-Pull-Request-Page-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-127 Bytes
(100%)
...eader.test.ts-snapshots/PageHeader-Pull-Request-Page-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
...er.test.ts-snapshots/PageHeader-Pull-Request-Page-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-56 Bytes
(100%)
...nents/PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+143 Bytes
(100%)
...eader.test.ts-snapshots/PageHeader-Pull-Request-Page-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+39 Bytes
(100%)
...shots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+55 Bytes
(100%)
...snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
...ts/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
...est.ts-snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+50 Bytes
(100%)
...shots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-127 Bytes
(100%)
...hots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
...s/PageHeader-Pull-Request-Page-on-Narrow-Viewport-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-56 Bytes
(100%)
...st.ts-snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+143 Bytes
(100%)
...hots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-48 Bytes
(100%)
...der.test.ts-snapshots/PageHeader-With-Navigation-Slot-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-42 Bytes
(100%)
...eHeader.test.ts-snapshots/PageHeader-With-Navigation-Slot-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
....test.ts-snapshots/PageHeader-With-Navigation-Slot-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-48 Bytes
(100%)
...nts/PageHeader.test.ts-snapshots/PageHeader-With-Navigation-Slot-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-48 Bytes
(100%)
...der.test.ts-snapshots/PageHeader-With-Navigation-Slot-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
...er.test.ts-snapshots/PageHeader-With-Navigation-Slot-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
...test.ts-snapshots/PageHeader-With-Navigation-Slot-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
...ts/PageHeader.test.ts-snapshots/PageHeader-With-Navigation-Slot-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
...er.test.ts-snapshots/PageHeader-With-Navigation-Slot-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+117 Bytes
(100%)
...eHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+300 Bytes
(100%)
.../PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-8 Bytes
(100%)
...ader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+92 Bytes
(100%)
...ponents/PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+278 Bytes
(100%)
...eHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+127 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-With-Page-Layout-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-13 Bytes
(100%)
...der.test.ts-snapshots/PageHeader-With-Page-Layout-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+236 Bytes
(100%)
...onents/PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+170 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-With-Page-Layout-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-213 Bytes
(100%)
...erlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-424 Bytes
(99%)
.../UnderlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-123 Bytes
(100%)
...ineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-213 Bytes
(100%)
...ponents/UnderlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-213 Bytes
(100%)
...erlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-109 Bytes
(100%)
...rlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-69 Bytes
(100%)
...neNav.test.ts-snapshots/UnderlineNav-Profile-Page-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-109 Bytes
(100%)
...onents/UnderlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-109 Bytes
(100%)
...rlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+134 Bytes
(100%)
...eNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+229 Bytes
(100%)
...rlineNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
...v.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+105 Bytes
(100%)
...ts/UnderlineNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+180 Bytes
(100%)
...eNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+149 Bytes
(100%)
...Nav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-6 Bytes
(100%)
....test.ts-snapshots/UnderlineNav-Pull-Request-Page-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+279 Bytes
(100%)
...s/UnderlineNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+222 Bytes
(100%)
...Nav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-67 Bytes
(99%)
...av.test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-43 Bytes
(100%)
...ineNav.test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-67 Bytes
(99%)
.../UnderlineNav.test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-67 Bytes
(99%)
...av.test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+77 Bytes
(100%)
...v.test.ts-snapshots/UnderlineNav-With-Counter-Labels-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...est.ts-snapshots/UnderlineNav-With-Counter-Labels-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+77 Bytes
(100%)
...UnderlineNav.test.ts-snapshots/UnderlineNav-With-Counter-Labels-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+77 Bytes
(100%)
...v.test.ts-snapshots/UnderlineNav-With-Counter-Labels-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-157 Bytes
(99%)
...nderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-123 Bytes
(99%)
...ts/UnderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-120 Bytes
(99%)
...rlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-157 Bytes
(99%)
...omponents/UnderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-157 Bytes
(99%)
...nderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-72 Bytes
(99%)
...derlineNav.test.ts-snapshots/UnderlineNav-With-Icons-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-74 Bytes
(99%)
...lineNav.test.ts-snapshots/UnderlineNav-With-Icons-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-72 Bytes
(99%)
...mponents/UnderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-72 Bytes
(99%)
...derlineNav.test.ts-snapshots/UnderlineNav-With-Icons-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-95 Bytes
(99%)
...nePanels.test.ts-snapshots/UnderlineNav-With-Counters-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-57 Bytes
(99%)
...erlinePanels.test.ts-snapshots/UnderlineNav-With-Counters-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
...anels.test.ts-snapshots/UnderlineNav-With-Counters-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-95 Bytes
(99%)
...nts/UnderlinePanels.test.ts-snapshots/UnderlineNav-With-Counters-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-95 Bytes
(99%)
...nePanels.test.ts-snapshots/UnderlineNav-With-Counters-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
...ePanels.test.ts-snapshots/UnderlineNav-With-Counters-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...nels.test.ts-snapshots/UnderlineNav-With-Counters-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
...ts/UnderlinePanels.test.ts-snapshots/UnderlineNav-With-Counters-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
...ePanels.test.ts-snapshots/UnderlineNav-With-Counters-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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.CounterLabel { | ||
display: inline-block; | ||
padding: var(--base-size-2) var(--base-size-6); | ||
font-size: var(--text-body-size-small); | ||
font-weight: var(--base-text-weight-semibold); | ||
/* stylelint-disable-next-line primer/typography */ | ||
line-height: 1; | ||
border: var(--borderWidth-thin) solid var(--counter-borderColor); | ||
/* stylelint-disable-next-line primer/borders */ | ||
border-radius: 20px; | ||
|
||
&[data-scheme='primary'] { | ||
color: var(--fgColor-onEmphasis); | ||
background-color: var(--bgColor-neutral-emphasis); | ||
} | ||
|
||
&[data-scheme='secondary'] { | ||
color: var(--fgColor-default); | ||
background-color: var(--bgColor-neutral-muted); | ||
} | ||
|
||
&:empty { | ||
display: none; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,23 @@ | ||
import React from 'react' | ||
import type {StoryFn, Meta} from '@storybook/react' | ||
import type {StoryFn, Meta, StoryObj} from '@storybook/react' | ||
import CounterLabel from './CounterLabel' | ||
|
||
export default { | ||
title: 'Components/CounterLabel', | ||
component: CounterLabel, | ||
} as Meta<typeof CounterLabel> | ||
|
||
export const Default: StoryFn<typeof CounterLabel> = () => <CounterLabel>12</CounterLabel> | ||
|
||
export const Playground: StoryObj<typeof CounterLabel> = { | ||
render: args => <CounterLabel {...args}>12</CounterLabel>, | ||
args: { | ||
scheme: 'primary', | ||
}, | ||
argTypes: { | ||
scheme: { | ||
control: 'select', | ||
options: ['primary', 'secondary'], | ||
}, | ||
}, | ||
} |
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.