Skip to content

Conversation

@SirLouen
Copy link
Member

@SirLouen SirLouen commented Dec 25, 2025

What?

Closes #73935

Why?

There is a visual glitch when clicking the tabs caused by the global WordPress :focus style that is applying the outline on click.

How?

Since the tabs already have a :focus-visible style for keyboard accessibility, we need to reset the :focus outline to prevent this.

Testing Instructions

  1. Enable Tabs in the Gutenberg > Experiments > Blocks: add experimental blocks
  2. Create a new post
  3. Add the tabs block and add a couple tabs
  4. Use a block theme like TT5
  5. Go to the front end and click on the Tabs (click and hold)
  6. 🐞 You will see that visual glitch

Screencast

Before

74225v1.mp4

After

74225v2.mp4

@github-actions
Copy link

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: SirLouen <[email protected]>
Co-authored-by: dhanson-wp <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions github-actions bot added the [Package] Block library /packages/block-library label Dec 25, 2025
@SirLouen SirLouen requested review from mikachan and removed request for ajitbohra and fabiankaegy December 25, 2025 20:40
@SirLouen SirLouen self-assigned this Dec 25, 2025
@SirLouen SirLouen added [Block] Tabs Affects the Tabs Block [Type] Bug An existing feature does not function as intended labels Dec 25, 2025
Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

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

This fixes the issue for me, and the change is nice and simple. I think this can come in. Thanks @SirLouen!

@mikachan mikachan merged commit e90c88f into WordPress:trunk Dec 29, 2025
48 of 51 checks passed
@github-actions github-actions bot added this to the Gutenberg 22.4 milestone Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Tabs Affects the Tabs Block [Package] Block library /packages/block-library [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tabs block] Needs Consistent Vertical Tabs Behavior

2 participants