-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Structural changes - Reorder: img goes first than the inline menu items - Always render the inline menu items. We want to keep a consistent tabbable experience. We'll style them down when not in focus. * Make button visible * Mark GalleryImage as selected on button focused * Fix color button on focus * Prevent the button from showing up if the GalleryImage is not selected * Make button and caption part of the tab path We can't use the isSelected property to conditionally render them, otherwise, they won't be tabbed through when tabbing backward. * We can actually disable the button depending on isSelected status The GalleryImage gets selected by focusing on the caption (tabbing backward) and the <img> element (tabbing forwards). At that time, the button is enabled and will get the focus. * Do not show caption when GalleryImage is not selected
- Loading branch information
Showing
2 changed files
with
32 additions
and
30 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
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