-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix VideoPlayer accessibility issues (#703)
* improve contrast of VideoPlayer focus styles * add changeset * remove overlay from playing video * improve contrast of VideoPlayer * fix issue of range tooltip overflowing container * fix color of custom play icon * update changeset * address pr feedback * fix issue where time tooltip can go out of range * fix colors after rebase * hide ControlsBar when video doesn't have focus or mouse * update snapshots * hide controls on inactivity
- Loading branch information
1 parent
b18d390
commit 621d8ee
Showing
20 changed files
with
148 additions
and
52 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,10 @@ | ||
--- | ||
'@primer/react-brand': patch | ||
--- | ||
|
||
`VideoPlayer` accessibility improvements | ||
|
||
- Improved contrast of play overlay focus styles. | ||
- Improved contrast of controls and title. | ||
- The title bar now hides while the video is playing. | ||
- The controls bar now hides when the cursor or keyboard focus leaves the video player, or after a few seconds of inactivity, and reappears when the cursor or keyboard focus returns. |
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
3 changes: 3 additions & 0 deletions
3
packages/react/src/VideoPlayer/VideoPlayer.stories.module.css
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,3 @@ | ||
.customPlayIcon { | ||
color: var(--base-color-scale-white-0); | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/react/src/VideoPlayer/VideoPlayer.stories.module.css.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const styles: { | ||
readonly "customPlayIcon": string; | ||
}; | ||
export = styles; | ||
|
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
Binary file modified
BIN
-2.38 KB
(90%)
...sual-Comparison-VideoPlayer-VideoPlayer-Controlled-Programmatically-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
-4.57 KB
(83%)
...napshots/Visual-Comparison-VideoPlayer-VideoPlayer-Custom-Play-Icon-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
-57.4 KB
(95%)
...spec.ts-snapshots/Visual-Comparison-VideoPlayer-VideoPlayer-Default-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
-1.85 KB
(89%)
...Visual-Comparison-VideoPlayer-VideoPlayer-Hide-Controls-When-Paused-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
-1.19 KB
(85%)
...spec.ts-snapshots/Visual-Comparison-VideoPlayer-VideoPlayer-Minimal-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
-57.4 KB
(95%)
...c.ts-snapshots/Visual-Comparison-VideoPlayer-VideoPlayer-Playground-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
-57.4 KB
(95%)
....ts-snapshots/Visual-Comparison-VideoPlayer-VideoPlayer-With-Poster-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
-3.98 KB
(81%)
...Visual-Comparison-VideoPlayer-VideoPlayer-With-Some-Hidden-Controls-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
-4.22 KB
(77%)
...isual-Comparison-VideoPlayer-VideoPlayer-With-Visually-Hidden-Title-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
-4.46 KB
(80%)
...napshots/Visual-Comparison-VideoPlayer-VideoPlayer-Without-Branding-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.
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