-
Notifications
You must be signed in to change notification settings - Fork 616
Adds UnderlinePanels to drafts/
#4550
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
37 commits
Select commit
Hold shift + click to select a range
4a27922
adds UnderlinePanels components and stories
mperrotti 393afbb
Merge branch 'main' of github.com:primer/react into mp/underline-panels
mperrotti e9ac50c
adds tests, minor stylistic updates
mperrotti c05ac21
adds component docs
mperrotti 5eef15a
adds changeset
mperrotti 7c00947
corrects changeset
mperrotti 0a87590
fixes circ dep, tests, misc bugs
mperrotti 9eda952
more test fixes
mperrotti 8b9c328
appease the linter
mperrotti f6a2067
updates snaps, fixes tiny visual regression
mperrotti 8197cc0
test(vrt): update snapshots
mperrotti 81b478c
cleanup
mperrotti b600b34
upgrades @github/tab-container-element
mperrotti b2f6daa
Merge branch 'main' into mp/underline-panels
mperrotti fa3f238
fixes createComponent import
mperrotti 711fed0
updates jest snapshots
mperrotti 1f2e1a9
Apply suggestion from @broccolinisoup
mperrotti 047bfad
addresses PR feedback
mperrotti a2f0995
Merge branch 'main' of github.com:primer/react into mp/underline-panels
mperrotti f728a01
Merge branch 'main' into mp/underline-panels
mperrotti 7091c99
fix broken import
mperrotti ec55b9f
Merge branch 'main' of github.com:primer/react into mp/underline-panels
mperrotti 38e98ed
addresses more PR feedback
mperrotti 426f8c0
Merge branch 'main' into mp/underline-panels
mperrotti 0f0b58c
test(vrt): update snapshots
mperrotti 86d5ef9
Merge branch 'main' of github.com:primer/react into mp/underline-panels
mperrotti 4dac206
Merge branch 'mp/underline-panels' of github.com:primer/react into mp…
mperrotti 9d7e5d7
Merge branch 'main' into mp/underline-panels
mperrotti 66e1ada
test(vrt): update snapshots
mperrotti efa5386
Merge branch 'main' of github.com:primer/react into mp/underline-panels
mperrotti c601277
Merge branch 'mp/underline-panels' of github.com:primer/react into mp…
mperrotti 13ad02a
Merge branch 'main' into mp/underline-panels
mperrotti 43bb92e
adds fallbacks to CSS vars
mperrotti 6db2049
Merge branch 'main' of github.com:primer/react into mp/underline-panels
mperrotti c55b637
fixes CSS typo
mperrotti 744eb62
fixes more typos
mperrotti 1cbc162
Merge branch 'main' into mp/underline-panels
mperrotti 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,7 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Adds UnderlinePanels component. It's like UnderlineNav, but for rendering semantic tabs instead of links. | ||
|
||
<!-- Changed components: UnderilnePanels --> | ||
Binary file modified
BIN
-77 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-51 Bytes
(100%)
...PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-75 Bytes
(100%)
...der.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-81 Bytes
(100%)
...onents/PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-76 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-106 Bytes
(100%)
...eader.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-178 Bytes
(99%)
...er.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-110 Bytes
(100%)
...nents/PageHeader.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-105 Bytes
(100%)
...eader.test.ts-snapshots/PageHeader-Pull-Request-Page-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
-77 Bytes
(100%)
...shots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-51 Bytes
(100%)
...snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-75 Bytes
(100%)
...ts/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-81 Bytes
(100%)
...est.ts-snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-76 Bytes
(100%)
...shots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-106 Bytes
(100%)
...hots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-178 Bytes
(99%)
...s/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-110 Bytes
(100%)
...st.ts-snapshots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-105 Bytes
(100%)
...hots/PageHeader-Pull-Request-Page-on-Narrow-Viewport-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
-88 Bytes
(99%)
...der.test.ts-snapshots/PageHeader-With-Navigation-Slot-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
-63 Bytes
(100%)
...eHeader.test.ts-snapshots/PageHeader-With-Navigation-Slot-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
-81 Bytes
(100%)
....test.ts-snapshots/PageHeader-With-Navigation-Slot-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
-88 Bytes
(99%)
...nts/PageHeader.test.ts-snapshots/PageHeader-With-Navigation-Slot-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
-88 Bytes
(99%)
...der.test.ts-snapshots/PageHeader-With-Navigation-Slot-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
-185 Bytes
(99%)
...er.test.ts-snapshots/PageHeader-With-Navigation-Slot-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
-295 Bytes
(98%)
...test.ts-snapshots/PageHeader-With-Navigation-Slot-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
-183 Bytes
(99%)
...ts/PageHeader.test.ts-snapshots/PageHeader-With-Navigation-Slot-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-185 Bytes
(99%)
...er.test.ts-snapshots/PageHeader-With-Navigation-Slot-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-88 Bytes
(100%)
...eHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-40 Bytes
(100%)
.../PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-82 Bytes
(100%)
...ader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-87 Bytes
(100%)
...ponents/PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-88 Bytes
(100%)
...eHeader.test.ts-snapshots/PageHeader-With-Page-Layout-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-123 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-With-Page-Layout-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-224 Bytes
(99%)
...der.test.ts-snapshots/PageHeader-With-Page-Layout-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-123 Bytes
(100%)
...onents/PageHeader.test.ts-snapshots/PageHeader-With-Page-Layout-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-120 Bytes
(100%)
...Header.test.ts-snapshots/PageHeader-With-Page-Layout-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+151 Bytes
(100%)
...test.ts-snapshots/UnderlineNav-Counters-Loading-State-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+130 Bytes
(100%)
...Nav.test.ts-snapshots/UnderlineNav-Counters-Loading-State-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+113 Bytes
(100%)
...t.ts-snapshots/UnderlineNav-Counters-Loading-State-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+164 Bytes
(100%)
...derlineNav.test.ts-snapshots/UnderlineNav-Counters-Loading-State-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+151 Bytes
(100%)
...test.ts-snapshots/UnderlineNav-Counters-Loading-State-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+290 Bytes
(100%)
...est.ts-snapshots/UnderlineNav-Counters-Loading-State-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+237 Bytes
(100%)
....ts-snapshots/UnderlineNav-Counters-Loading-State-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+185 Bytes
(100%)
...erlineNav.test.ts-snapshots/UnderlineNav-Counters-Loading-State-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+290 Bytes
(100%)
...est.ts-snapshots/UnderlineNav-Counters-Loading-State-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...s/UnderlineNav.test.ts-snapshots/UnderlineNav-Default-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
...nents/UnderlineNav.test.ts-snapshots/UnderlineNav-Default-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...nderlineNav.test.ts-snapshots/UnderlineNav-Default-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...s/components/UnderlineNav.test.ts-snapshots/UnderlineNav-Default-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...s/UnderlineNav.test.ts-snapshots/UnderlineNav-Default-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
.../UnderlineNav.test.ts-snapshots/UnderlineNav-Default-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+40 Bytes
(100%)
...derlineNav.test.ts-snapshots/UnderlineNav-Default-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
.../components/UnderlineNav.test.ts-snapshots/UnderlineNav-Default-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
.../UnderlineNav.test.ts-snapshots/UnderlineNav-Default-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-131 Bytes
(100%)
...erlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+405 Bytes
(100%)
.../UnderlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-118 Bytes
(100%)
...ineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-131 Bytes
(100%)
...ponents/UnderlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-131 Bytes
(100%)
...erlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-182 Bytes
(100%)
...rlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 Bytes
(100%)
...neNav.test.ts-snapshots/UnderlineNav-Profile-Page-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-189 Bytes
(100%)
...onents/UnderlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-182 Bytes
(100%)
...rlineNav.test.ts-snapshots/UnderlineNav-Profile-Page-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(100%)
...eNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-26 Bytes
(100%)
...rlineNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-36 Bytes
(100%)
...v.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-67 Bytes
(100%)
...ts/UnderlineNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-81 Bytes
(100%)
...eNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-167 Bytes
(100%)
...Nav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-248 Bytes
(99%)
....test.ts-snapshots/UnderlineNav-Pull-Request-Page-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-108 Bytes
(100%)
...s/UnderlineNav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-43 Bytes
(100%)
...Nav.test.ts-snapshots/UnderlineNav-Pull-Request-Page-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+46 Bytes
(100%)
...av.test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-36 Bytes
(100%)
...ineNav.test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+26 Bytes
(100%)
...test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+46 Bytes
(100%)
.../UnderlineNav.test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+46 Bytes
(100%)
...av.test.ts-snapshots/UnderlineNav-With-Counter-Labels-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-102 Bytes
(99%)
...v.test.ts-snapshots/UnderlineNav-With-Counter-Labels-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-184 Bytes
(98%)
...est.ts-snapshots/UnderlineNav-With-Counter-Labels-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-33 Bytes
(100%)
...UnderlineNav.test.ts-snapshots/UnderlineNav-With-Counter-Labels-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-102 Bytes
(99%)
...v.test.ts-snapshots/UnderlineNav-With-Counter-Labels-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-25 Bytes
(100%)
...nderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-44 Bytes
(100%)
...ts/UnderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
+157 Bytes
(100%)
...rlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-25 Bytes
(100%)
...omponents/UnderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-25 Bytes
(100%)
...nderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
...derlineNav.test.ts-snapshots/UnderlineNav-With-Icons-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+154 Bytes
(100%)
...lineNav.test.ts-snapshots/UnderlineNav-With-Icons-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+33 Bytes
(100%)
...mponents/UnderlineNav.test.ts-snapshots/UnderlineNav-With-Icons-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+26 Bytes
(100%)
...derlineNav.test.ts-snapshots/UnderlineNav-With-Icons-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.17 KB
...nderlinePanels.test.ts-snapshots/UnderlineNav-Default-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.17 KB
...ts/UnderlinePanels.test.ts-snapshots/UnderlineNav-Default-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.14 KB
...rlinePanels.test.ts-snapshots/UnderlineNav-Default-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.17 KB
...omponents/UnderlinePanels.test.ts-snapshots/UnderlineNav-Default-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.17 KB
...nderlinePanels.test.ts-snapshots/UnderlineNav-Default-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.15 KB
...derlinePanels.test.ts-snapshots/UnderlineNav-Default-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.11 KB
...linePanels.test.ts-snapshots/UnderlineNav-Default-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.15 KB
...mponents/UnderlinePanels.test.ts-snapshots/UnderlineNav-Default-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.15 KB
...derlinePanels.test.ts-snapshots/UnderlineNav-Default-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
...s-snapshots/UnderlineNav-Labelled-By-External-Element-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.8 KB
...st.ts-snapshots/UnderlineNav-Labelled-By-External-Element-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.6 KB
...napshots/UnderlineNav-Labelled-By-External-Element-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
...nels.test.ts-snapshots/UnderlineNav-Labelled-By-External-Element-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
...s-snapshots/UnderlineNav-Labelled-By-External-Element-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.5 KB
...-snapshots/UnderlineNav-Labelled-By-External-Element-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.2 KB
...apshots/UnderlineNav-Labelled-By-External-Element-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.5 KB
...els.test.ts-snapshots/UnderlineNav-Labelled-By-External-Element-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+13.5 KB
...-snapshots/UnderlineNav-Labelled-By-External-Element-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.85 KB
...inePanels.test.ts-snapshots/UnderlineNav-Selected-Tab-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.85 KB
...derlinePanels.test.ts-snapshots/UnderlineNav-Selected-Tab-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.8 KB
...Panels.test.ts-snapshots/UnderlineNav-Selected-Tab-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.85 KB
...ents/UnderlinePanels.test.ts-snapshots/UnderlineNav-Selected-Tab-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.85 KB
...inePanels.test.ts-snapshots/UnderlineNav-Selected-Tab-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.87 KB
...nePanels.test.ts-snapshots/UnderlineNav-Selected-Tab-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.81 KB
...anels.test.ts-snapshots/UnderlineNav-Selected-Tab-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.87 KB
...nts/UnderlinePanels.test.ts-snapshots/UnderlineNav-Selected-Tab-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.87 KB
...nePanels.test.ts-snapshots/UnderlineNav-Selected-Tab-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.81 KB
...snapshots/UnderlineNav-With-Counters-In-Loading-State-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.84 KB
....ts-snapshots/UnderlineNav-With-Counters-In-Loading-State-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.8 KB
...pshots/UnderlineNav-With-Counters-In-Loading-State-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.81 KB
...ls.test.ts-snapshots/UnderlineNav-With-Counters-In-Loading-State-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.81 KB
...snapshots/UnderlineNav-With-Counters-In-Loading-State-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.76 KB
...napshots/UnderlineNav-With-Counters-In-Loading-State-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.74 KB
...shots/UnderlineNav-With-Counters-In-Loading-State-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.75 KB
...s.test.ts-snapshots/UnderlineNav-With-Counters-In-Loading-State-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+7.75 KB
...napshots/UnderlineNav-With-Counters-In-Loading-State-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.66 KB
...nePanels.test.ts-snapshots/UnderlineNav-With-Counters-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.69 KB
...erlinePanels.test.ts-snapshots/UnderlineNav-With-Counters-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.68 KB
...anels.test.ts-snapshots/UnderlineNav-With-Counters-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.66 KB
...nts/UnderlinePanels.test.ts-snapshots/UnderlineNav-With-Counters-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.66 KB
...nePanels.test.ts-snapshots/UnderlineNav-With-Counters-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.54 KB
...ePanels.test.ts-snapshots/UnderlineNav-With-Counters-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.81 KB
...nels.test.ts-snapshots/UnderlineNav-With-Counters-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.54 KB
...ts/UnderlinePanels.test.ts-snapshots/UnderlineNav-With-Counters-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+8.54 KB
...ePanels.test.ts-snapshots/UnderlineNav-With-Counters-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...shots/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.1 KB
...snapshots/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...ts/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...est.ts-snapshots/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...shots/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...hots/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.1 KB
...s/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...st.ts-snapshots/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...hots/UnderlineNav-With-Icons-Hidden-On-Narrow-Screen-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.41 KB
...rlinePanels.test.ts-snapshots/UnderlineNav-With-Icons-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.45 KB
...UnderlinePanels.test.ts-snapshots/UnderlineNav-With-Icons-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.31 KB
...nePanels.test.ts-snapshots/UnderlineNav-With-Icons-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.41 KB
...onents/UnderlinePanels.test.ts-snapshots/UnderlineNav-With-Icons-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.41 KB
...rlinePanels.test.ts-snapshots/UnderlineNav-With-Icons-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.38 KB
...linePanels.test.ts-snapshots/UnderlineNav-With-Icons-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.23 KB
...ePanels.test.ts-snapshots/UnderlineNav-With-Icons-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.38 KB
...nents/UnderlinePanels.test.ts-snapshots/UnderlineNav-With-Icons-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+9.38 KB
...linePanels.test.ts-snapshots/UnderlineNav-With-Icons-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,245 @@ | ||
import {test, expect} from '@playwright/test' | ||
import {visit} from '../test-helpers/storybook' | ||
import {themes} from '../test-helpers/themes' | ||
|
||
test.describe('UnderlinePanels', () => { | ||
test.describe('Default', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels--default', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.Default.${theme}.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels--default', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations({ | ||
rules: { | ||
'color-contrast': { | ||
enabled: theme !== 'dark_dimmed', | ||
}, | ||
}, | ||
}) | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
test.describe('Labelled By External Element', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--labelled-by-external-element', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.Labelled By External Element.${theme}.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--labelled-by-external-element', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations({ | ||
rules: { | ||
'color-contrast': { | ||
enabled: theme !== 'dark_dimmed', | ||
}, | ||
}, | ||
}) | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
test.describe('Selected Tab', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--selected-tab', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.Selected Tab.${theme}.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--selected-tab', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations({ | ||
rules: { | ||
'color-contrast': { | ||
enabled: theme !== 'dark_dimmed', | ||
}, | ||
}, | ||
}) | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
test.describe('With Counters', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--with-counters', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.With Counters.${theme}.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--with-counters', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations({ | ||
rules: { | ||
'color-contrast': { | ||
enabled: theme !== 'dark_dimmed', | ||
}, | ||
}, | ||
}) | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
test.describe('With Counters In Loading State', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--with-counters-in-loading-state', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.With Counters In Loading State.${theme}.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--with-counters-in-loading-state', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations({ | ||
rules: { | ||
'color-contrast': { | ||
enabled: theme !== 'dark_dimmed', | ||
}, | ||
}, | ||
}) | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
test.describe('With Icons', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--with-icons', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot()).toMatchSnapshot(`UnderlineNav.With Icons.${theme}.png`) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--with-icons', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations({ | ||
rules: { | ||
'color-contrast': { | ||
enabled: theme !== 'dark_dimmed', | ||
}, | ||
}, | ||
}) | ||
}) | ||
}) | ||
} | ||
}) | ||
|
||
test.describe('With Icons Hidden On Narrow Screen', () => { | ||
for (const theme of themes) { | ||
test.describe(theme, () => { | ||
test('default @vrt', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--with-icons-hidden-on-narrow-screen', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
|
||
// Default state | ||
expect(await page.screenshot()).toMatchSnapshot( | ||
`UnderlineNav.With Icons Hidden On Narrow Screen.${theme}.png`, | ||
) | ||
}) | ||
|
||
test('axe @aat', async ({page}) => { | ||
await visit(page, { | ||
id: 'drafts-components-underlinepanels-features--with-icons-hidden-on-narrow-screen', | ||
globals: { | ||
colorScheme: theme, | ||
}, | ||
}) | ||
await expect(page).toHaveNoViolations({ | ||
rules: { | ||
'color-contrast': { | ||
enabled: theme !== 'dark_dimmed', | ||
}, | ||
}, | ||
}) | ||
}) | ||
}) | ||
} | ||
}) | ||
}) |
Oops, something went wrong.
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.