-
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 loading state to ActionList items (#4051)
* adds loading state to inactive items * adds changeset * test(vrt): update snapshots * test(vrt): update snapshots * moves Spinner changes to a different branch * test(vrt): update snapshots * addresses a11y feedback about tooltip label and description * update outdated Tooltip import * attempt to fix circular dependency * another attempt at resolving circular dependency * fixes merge mistakes * addresses PR feedback * rm loading link item from feature story * test(vrt): update snapshots * rm 'default state test' assertion for ActionMenus w/ loading and inactive items * addresses last bit of PR feedback --------- Co-authored-by: mperrotti <mperrotti@users.noreply.github.com>
- Loading branch information
Showing
79 changed files
with
461 additions
and
150 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 a loading state to ActionList items. Also allows the Spinner component to accept screenreader text. | ||
|
||
<!-- Changed components: ActionList, ActionMenu, NavList, Spinners --> |
Binary file modified
BIN
-7 Bytes
(100%)
...ActionList.test.ts-snapshots/ActionList-Inactive-Item-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-39 Bytes
(100%)
...nts/ActionList.test.ts-snapshots/ActionList-Inactive-Item-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11 Bytes
(100%)
...ionList.test.ts-snapshots/ActionList-Inactive-Item-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16 Bytes
(100%)
...components/ActionList.test.ts-snapshots/ActionList-Inactive-Item-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7 Bytes
(100%)
...ActionList.test.ts-snapshots/ActionList-Inactive-Item-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+42 Bytes
(100%)
...ctionList.test.ts-snapshots/ActionList-Inactive-Item-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
...onList.test.ts-snapshots/ActionList-Inactive-Item-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+39 Bytes
(100%)
...omponents/ActionList.test.ts-snapshots/ActionList-Inactive-Item-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+42 Bytes
(100%)
...ctionList.test.ts-snapshots/ActionList-Inactive-Item-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.6 KB
.../ActionList.test.ts-snapshots/ActionList-Loading-Item-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.3 KB
...ents/ActionList.test.ts-snapshots/ActionList-Loading-Item-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.5 KB
...tionList.test.ts-snapshots/ActionList-Loading-Item-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.4 KB
.../components/ActionList.test.ts-snapshots/ActionList-Loading-Item-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.6 KB
.../ActionList.test.ts-snapshots/ActionList-Loading-Item-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.5 KB
...ActionList.test.ts-snapshots/ActionList-Loading-Item-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.4 KB
...ionList.test.ts-snapshots/ActionList-Loading-Item-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.4 KB
...components/ActionList.test.ts-snapshots/ActionList-Loading-Item-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.5 KB
...ActionList.test.ts-snapshots/ActionList-Loading-Item-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12.1 KB
(150%)
....ts-snapshots/ActionMenu-Inactive-Items-dark-colorblind-default-vrt-1-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
+245 Bytes
(100%)
...ctionMenu.test.ts-snapshots/ActionMenu-Inactive-Items-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
+12 KB
(150%)
...onMenu.test.ts-snapshots/ActionMenu-Inactive-Items-dark-default-vrt-1-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
+14.4 KB
(150%)
...test.ts-snapshots/ActionMenu-Inactive-Items-dark-dimmed-default-vrt-1-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
+240 Bytes
(100%)
...ts/ActionMenu.test.ts-snapshots/ActionMenu-Inactive-Items-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
+12.4 KB
(150%)
...-snapshots/ActionMenu-Inactive-Items-dark-high-contrast-default-vrt-1-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
+202 Bytes
(100%)
...onMenu.test.ts-snapshots/ActionMenu-Inactive-Items-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
+245 Bytes
(100%)
...omponents/ActionMenu.test.ts-snapshots/ActionMenu-Inactive-Items-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
+12.2 KB
(150%)
....ts-snapshots/ActionMenu-Inactive-Items-dark-tritanopia-default-vrt-1-linux.png
Oops, something went wrong.
Binary file modified
BIN
+245 Bytes
(100%)
...ctionMenu.test.ts-snapshots/ActionMenu-Inactive-Items-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+11.3 KB
(140%)
...ts-snapshots/ActionMenu-Inactive-Items-light-colorblind-default-vrt-1-linux.png
Oops, something went wrong.
Binary file modified
BIN
+306 Bytes
(100%)
...tionMenu.test.ts-snapshots/ActionMenu-Inactive-Items-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+11.3 KB
(140%)
...nMenu.test.ts-snapshots/ActionMenu-Inactive-Items-light-default-vrt-1-linux.png
Oops, something went wrong.
Binary file modified
BIN
+12.1 KB
(150%)
...snapshots/ActionMenu-Inactive-Items-light-high-contrast-default-vrt-1-linux.png
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(100%)
...nMenu.test.ts-snapshots/ActionMenu-Inactive-Items-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+306 Bytes
(100%)
...mponents/ActionMenu.test.ts-snapshots/ActionMenu-Inactive-Items-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+11.3 KB
(140%)
...ts-snapshots/ActionMenu-Inactive-Items-light-tritanopia-default-vrt-1-linux.png
Oops, something went wrong.
Binary file modified
BIN
+306 Bytes
(100%)
...tionMenu.test.ts-snapshots/ActionMenu-Inactive-Items-light-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+24.3 KB
...t.ts-snapshots/ActionMenu-Loading-Items-dark-colorblind-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.53 KB
...ActionMenu.test.ts-snapshots/ActionMenu-Loading-Items-dark-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+24.3 KB
...ionMenu.test.ts-snapshots/ActionMenu-Loading-Items-dark-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+24.8 KB
....test.ts-snapshots/ActionMenu-Loading-Items-dark-dimmed-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.5 KB
...nts/ActionMenu.test.ts-snapshots/ActionMenu-Loading-Items-dark-dimmed-linux.png
Oops, something went wrong.
Binary file added
BIN
+24.4 KB
...s-snapshots/ActionMenu-Loading-Items-dark-high-contrast-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.54 KB
...ionMenu.test.ts-snapshots/ActionMenu-Loading-Items-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.53 KB
...components/ActionMenu.test.ts-snapshots/ActionMenu-Loading-Items-dark-linux.png
Oops, something went wrong.
Binary file added
BIN
+24.3 KB
...t.ts-snapshots/ActionMenu-Loading-Items-dark-tritanopia-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.53 KB
...ActionMenu.test.ts-snapshots/ActionMenu-Loading-Items-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file added
BIN
+25.2 KB
....ts-snapshots/ActionMenu-Loading-Items-light-colorblind-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.61 KB
...ctionMenu.test.ts-snapshots/ActionMenu-Loading-Items-light-colorblind-linux.png
Oops, something went wrong.
Binary file added
BIN
+25.2 KB
...onMenu.test.ts-snapshots/ActionMenu-Loading-Items-light-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+25.2 KB
...-snapshots/ActionMenu-Loading-Items-light-high-contrast-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.66 KB
...onMenu.test.ts-snapshots/ActionMenu-Loading-Items-light-high-contrast-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.61 KB
...omponents/ActionMenu.test.ts-snapshots/ActionMenu-Loading-Items-light-linux.png
Oops, something went wrong.
Binary file added
BIN
+25.2 KB
....ts-snapshots/ActionMenu-Loading-Items-light-tritanopia-default-vrt-1-linux.png
Oops, something went wrong.
Binary file added
BIN
+6.61 KB
...ctionMenu.test.ts-snapshots/ActionMenu-Loading-Items-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...s/ToggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...nents/ToggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...oggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...s/components/ToggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...s/ToggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
+86 Bytes
(100%)
.../ToggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
+20 Bytes
(100%)
...ggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
+91 Bytes
(100%)
.../components/ToggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
+86 Bytes
(100%)
.../ToggleSwitch.test.ts-snapshots/ToggleSwitch-Loading-light-tritanopia-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.