-
-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keyboard accessibility improvements (#16613)
### What does it do? Make the MODX manager interface more accessible when using the keyboard ### How to test Minify CSS and compress JS via grunt first. Use the `Tab` key to navigate through the Manager UI. Use the `Esc` key to close the subnavigation. Use the tab key to navigate through the tabs. ### Related issue(s)/PR(s) See #16612 --------- Co-authored-by: Jason Coward <jason@opengeek.com>
- Loading branch information
1 parent
1755b98
commit b207371
Showing
15 changed files
with
238 additions
and
58 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,44 @@ | ||
.ext-webkit { | ||
|
||
* { | ||
|
||
&:focus-visible { | ||
outline: auto !important; | ||
outline-offset: .1em; | ||
|
||
&.x-form-focus { | ||
outline: none !important; | ||
} | ||
} | ||
} | ||
|
||
.x-form-check-wrap:focus-within:has(:focus-visible) { | ||
|
||
label:before { | ||
outline: auto !important; | ||
outline-offset: .1em; | ||
} | ||
} | ||
} | ||
|
||
// skiplinks | ||
.skiplinks { | ||
position: fixed; | ||
top: -100rem; | ||
left: -100rem; | ||
z-index: 99999; | ||
width: 0; | ||
height: 0; | ||
|
||
a { | ||
&:focus, | ||
&:active { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
padding: 1rem; | ||
margin: 1rem; | ||
background-color: white; | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -174,7 +174,8 @@ | |
} | ||
} | ||
|
||
&:hover { | ||
&:hover, | ||
&:focus-within { | ||
.action-buttons { | ||
button { | ||
opacity: 1; | ||
|
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 |
---|---|---|
|
@@ -334,7 +334,8 @@ | |
} | ||
|
||
&:hover, | ||
&:focus { | ||
&:focus, | ||
&:focus-within { | ||
.modx-tree-node-btn-create { | ||
opacity: 1.0; | ||
} | ||
|
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
Large diffs are not rendered by default.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Is this a typo and should be
javascript:;