-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address a11y issues in browser-based console UI #26872
Changes from all commits
3fc63ae
bce5995
c128021
b3d5706
36256da
425cc5b
4bb5705
bf26929
b319d10
a4f5409
8bbb24a
6b39201
5977177
7525254
30f9edc
a5b2076
5029cf1
b9d6b0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
ui: Resolved accessibility issues with Web REPL. Associated label and help text with input, added a conditional to show the console/ui-panel only when toggled open, added keyboard focus trap. | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,9 @@ $console-close-height: 35px; | |
overflow: auto; | ||
position: fixed; | ||
bottom: 0; | ||
transition: min-height $speed $easing, transform $speed ease-in; | ||
transition: | ||
min-height $speed $easing, | ||
transform $speed ease-in; | ||
will-change: transform, min-height; | ||
-webkit-overflow-scrolling: touch; | ||
z-index: 199; | ||
|
@@ -118,11 +120,11 @@ $console-close-height: 35px; | |
|
||
.panel-open .console-ui-panel { | ||
box-shadow: $box-shadow-highest; | ||
min-height: 400px; | ||
min-height: 425px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think eventually we'll want to re-visit this to make it a little more flexible, but right now it needed to be increased to account for the close button. The close button was positioned in the DOM outside of the container it was then positioned inside of, which was causing the element to overlap. We don't want it to overlap other content. |
||
} | ||
|
||
.main--console-open { | ||
padding-bottom: 400px; | ||
padding-bottom: 425px; | ||
} | ||
|
||
.panel-open .console-ui-panel.fullscreen { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,19 +10,20 @@ | |
<Chevron /> | ||
{{/if}} | ||
<input | ||
aria-label="command input" | ||
aria-label="web R.E.P.L." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding it as "R.E.P.L." instead of just REPL helps screen readers to read it out correctly. |
||
aria-describedby="namespace-reminder" | ||
onkeyup={{action "handleKeyUp"}} | ||
value={{this.value}} | ||
autocomplete="off" | ||
spellcheck="false" | ||
id="console-input" | ||
/> | ||
<Hds::Button | ||
class="hds-side-nav__icon-button" | ||
{{on "click" (action "fullscreen")}} | ||
{{hds-tooltip (if this.isFullscreen "minimize" "maximize")}} | ||
data-test-tool-tip-trigger | ||
data-test-dismiss-console-button | ||
@icon={{if this.isFullscreen "minimize" "maximize"}} | ||
@text={{if this.isFullscreen "Minimize" "Maximize"}} | ||
@text={{if this.isFullscreen "Minimize window" "Maximize window"}} | ||
@isIconOnly={{true}} | ||
/> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this to make it more consistent with the rest of the UI code so the implementation matches.