-
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.
Adds UnderlinePanels to
drafts/
(#4550)
* adds UnderlinePanels components and stories stylistic tweaks more stylistic tweaks * adds tests, minor stylistic updates * adds component docs * adds changeset * corrects changeset * fixes circ dep, tests, misc bugs * more test fixes * appease the linter * updates snaps, fixes tiny visual regression * test(vrt): update snapshots * cleanup * upgrades @github/tab-container-element * fixes createComponent import * updates jest snapshots * Apply suggestion from @broccolinisoup Co-authored-by: Armağan <[email protected]> * addresses PR feedback * fix broken import * addresses more PR feedback * test(vrt): update snapshots * test(vrt): update snapshots * adds fallbacks to CSS vars * fixes CSS typo * fixes more typos --------- Co-authored-by: mperrotti <[email protected]> Co-authored-by: Armağan <[email protected]>
- Loading branch information
1 parent
3c467ef
commit 3e493ba
Showing
170 changed files
with
4,272 additions
and
10,280 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,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 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.