-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve toolbar accessibility (#1542)
* Add custom toolbar example Signed-off-by: Joe Fusco <[email protected]> * Add newline at EOF Signed-off-by: Joe Fusco <[email protected]> * Remove top-level links for dropdown example Signed-off-by: Joe Fusco <[email protected]> * Update lockfile Signed-off-by: Joe Fusco <[email protected]> * Update lockfile Signed-off-by: Joe Fusco <[email protected]> * Linting fixes Signed-off-by: Joe Fusco <[email protected]> * Remove uncessary deps Signed-off-by: Joe Fusco <[email protected]> * Remove unused deps Signed-off-by: Joe Fusco <[email protected]> * Rename plugin Signed-off-by: Joe Fusco <[email protected]> * Use appropriate versions Signed-off-by: Joe Fusco <[email protected]> * Rename Signed-off-by: Joe Fusco <[email protected]> * Add changeset Signed-off-by: Joe Fusco <[email protected]> * Temp remove custom toolbar example Signed-off-by: Joe Fusco <[email protected]> * Remove unused prop Signed-off-by: Joe Fusco <[email protected]> * Remove custom toolbar example Signed-off-by: Joe Fusco <[email protected]> * Fix linting issues Signed-off-by: Joe Fusco <[email protected]> * Fix accessibility linting issue Signed-off-by: Joe Fusco <[email protected]> * Add exception due to wpadminbar styles Signed-off-by: Joe Fusco <[email protected]> * Update changelog entry Signed-off-by: Joe Fusco <[email protected]> * Clean up Signed-off-by: Joe Fusco <[email protected]> * Space should not open the menu to match WP core Signed-off-by: Joe Fusco <[email protected]> * Update changeset Signed-off-by: Joe Fusco <[email protected]> --------- Signed-off-by: Joe Fusco <[email protected]>
- Loading branch information
1 parent
350dc30
commit 795d956
Showing
4 changed files
with
44 additions
and
18 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,13 @@ | ||
--- | ||
'@faustwp/core': patch | ||
--- | ||
|
||
Improved keyboard navigation within Toolbar menus, allowing for dropdowns to be toggled open with "enter" | ||
|
||
Note that the `ToolbarItem` component no longer uses the prop `handleClick`, instead relying on pass-through props in order to separate the click event from the the key event. | ||
|
||
```jsx | ||
<ToolbarItem onKeyDown={handleKeyDown} onClick={handleClick}> | ||
Log Out | ||
</ToolbarItem> | ||
``` |
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
795d956
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.
Check out the recent updates to your Atlas environment:
Learn more about building on Atlas in our documentation.