1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-03 20:07:35 +02:00

some a11y improvements. stop saved item pane for tabbing when hidden

This commit is contained in:
Kushagra Gour
2019-03-14 00:44:13 +05:30
parent 5ef727d835
commit 9a2fdfe552
3 changed files with 6 additions and 0 deletions

View File

@@ -150,11 +150,14 @@ export default class SavedItemPane extends Component {
id="js-saved-items-pane"
class={`saved-items-pane ${isOpen ? 'is-open' : ''}`}
onKeyDown={this.keyDownHandler.bind(this)}
aria-hidden={isOpen}
tabIndex={`${isOpen ? 0 : -1}`}
>
<button
onClick={this.onCloseIntent.bind(this)}
class="btn saved-items-pane__close-btn"
id="js-saved-items-pane-close-btn"
aria-label="Close saved creations pane"
>
X
</button>