Skip to content
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

Editor Sidebar: Improve screen header UI #605

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Editor Sidebar: Improve screen header UI #605

merged 1 commit into from
Apr 28, 2024

Conversation

t-hamano
Copy link
Contributor

Fixes #604

This PR improves the UI in the title section of the editor sidebar and accomplishes the following:

  • The header UI mostly matches the Global Styles header.
  • Separate button and h2 title. This separates the button's focus outline from the title and also makes it suitable as markup.
  • Screen readers correctly say "Back" when the button has focus.
  • If it is an RTL language, the chevron icon changes from left to right.
Before After
image image

In implementing these, I mimicked ScreenHeader component in Gutenberg repo.

Copy link
Member

@vcanales vcanales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested; looks good!

@vcanales vcanales merged commit 1787f90 into WordPress:trunk Apr 28, 2024
2 checks passed
@t-hamano t-hamano deleted the enhancement/editor-sidebar-title branch April 28, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance editor sidebar title UI
2 participants