forked from Automattic/simplenote-electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve a11y for modals (Automattic#950)
* Set id on root div * Introduce react-modal * Integrate react-modal * Remove focus ring from dialog * Fix modal overlay for Dark Theme * Fix About dialog in Dark Theme * Remove unneeded .focus-guard class * Rename `single` dialog prop to `multiple` Make all dialogs default to multiple = false * Remove unused `params` * Make all dialogs modal by default * Remove unneeded refs in Dialog * Remove unused element id in Dialog * Use separate `hideTitleBar` prop * Remove unused `params` in DialogRenderer * Add title (aria-label) to all dialogs * Use enums for dialog types/titles * Add aria-labels for dialog close buttons * Rename `dialog--box` to `dialog` * Move react-modal init to boot.js To avoid complication with the smoke test for App * Remove unnecessary test * Rename ReactModal to Modal * Remove `modal` prop from dialog data * Add spread to box-shadows on dialog (Light) Co-Authored-By: mirka <lena@jaguchi.com> * Add spread to box-shadows on dialog (Dark) Co-Authored-By: mirka <lena@jaguchi.com> * Fixup BEM fail in .dialog-renderer 🤦🏻♀️
- Loading branch information
Showing
26 changed files
with
298 additions
and
397 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.dialog-renderer__overlay { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background: rgba($white, .75); | ||
} | ||
|
||
.theme-dark { | ||
.dialog-renderer__overlay { | ||
background: rgba($gray-darkest, .75); | ||
} | ||
} | ||
|
||
.dialog-renderer__content { | ||
&:focus { | ||
outline: 0; | ||
} | ||
} |
This file was deleted.
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
Oops, something went wrong.