-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Styles Navigation Screen: Add Style Book #50566
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
Merged
andrewserong
merged 8 commits into
trunk
from
add/style-book-button-in-styles-navigation-screen-in-browse-mode
May 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
40afb53
Styles Navigation Screen: Add button to open Style Book
andrewserong 74ebe61
Remove state and useEffect, use async / await instead
andrewserong 586c8c6
Try exposing Style Book in browse mode
andrewserong 48da665
Try hiding Style Book tabs, add keyboard behaviour
andrewserong d37241f
Revert background color removal
andrewserong 4600550
Clear the editor canvas container view when accessing the main naviga…
andrewserong 5e7783f
Fix enableResizing, move prevent default to the Style Book component …
andrewserong 1ddbafe
Tidy code a little
andrewserong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Styles Navigation Screen: Add button to open Style Book
- Loading branch information
commit 40afb5370a08173e4f6fedb05b3e5bd4aa253ff2
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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've just used a simple div here so that there isn't any space between the buttons. Happy to change this if we need the buttons to have some breathing room.
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.
Sounds good 👍
I'm not an expert here, but would something like
<div role="group" aria-label="Styles commands">be appropriate too?Asking for a friend
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.
Good question — I only added the wrapping
divfor styling purposes rather than to flag anything semantically. Since there's only two controls at the moment, I wasn't sure how valuable having a group role would be for those two buttons?Happy to add it in, though, if you think it's better to treat them as a group!
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.
Honestly I don't know. I think it's fine to leave as is. If we find out a group role is helpful it's easy to add in 👍
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.
Cheers, sounds good 👍