-
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
Site Icon Focus fix #66952
Site Icon Focus fix #66952
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @kNoCoding. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @karthick-murugan! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
@jeryj - Closed the previous PR #65936 and created this new one, since resolving some conflict issue brought in many commits to that PR. We can continue our discussion here. Regarding your latest message, I tried with the before , after pseudo element but did not get the desired result. Adding a 1px padding was doing the job, but not sure if that will be a accepted fix. Please provide your inputs. |
Nice work, thanks for the PR. It's not clear that this fully solves the original issue, though: The 1px padding also makes the icon itself jump a little bit inwards, which is jarring. I think what we need to do is create a pseudo element. Someting like this might work:
|
jasmussen Updated the proposed changes. Can you please review it? |
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.
WFM!
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.
The changes test well for me as well ✅
What?
Fixes #61339
Fixes #66375
This PR updates the SCSS file for the site icon to improve focus visibility.
Why?
The focus ring on the site hub icon was not visible or visually appealing when using keyboard navigation, impacting accessibility.
How?
The SCSS file gutenberg/packages/edit-site/src/components/site-icon/style.scss has been modified to add a blue border outline around the site icon when it is focused.
Testing Instructions
Testing Instructions for Keyboard
Ensure the blue border outline appears around the site icon when focused using keyboard navigation.
Screenshots or screencast
Screenshot:

Video:
https://github.com/user-attachments/assets/4a5609a0-0827-4e43-b64d-c8b27f714aaf