-
Notifications
You must be signed in to change notification settings - Fork 647
refactor(CounterLabel): update to use CSS Modules behind flag #4965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
40c6b96
refactor(CounterLabel): update to use CSS Modules behind flag
joshblack 07a6e9a
chore: add changeset
joshblack ce6e6b2
test: update snapshots and remove duplicate tests
joshblack 1208645
Merge branch 'main' of github.com:primer/react into 3918-update-count…
joshblack aa6932d
chore: update css modules
joshblack e97007a
Update packages/react/src/CounterLabel/CounterLabel.module.css
joshblack 30ca350
Update packages/react/src/CounterLabel/CounterLabel.module.css
joshblack 92e8e1c
Merge branch 'main' of github.com:primer/react into 3918-update-count…
joshblack 3d50916
test(e2e): update e2e tests for counter label
joshblack 6e16bc6
chore: fix spacing to use original px value
joshblack be0ef00
chore: update size to match rails
joshblack 5f30314
chore: add fallbacks in styled components case
joshblack 9c158c8
Update packages/react/src/CounterLabel/CounterLabel.tsx
joshblack 7c62400
test: update snapshots
joshblack a1c72bc
test: update story ids to include features
joshblack dee1397
test(vrt): update snapshots
joshblack 169fbbf
Merge branch 'main' into 3918-update-counter-label
joshblack d4119d9
chore: update import for CounterLabel
joshblack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.