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

Details Block: The outline is cut off when focusing on the summary element #60269

Closed
t-hamano opened this issue Mar 28, 2024 · 0 comments · Fixed by #60270
Closed

Details Block: The outline is cut off when focusing on the summary element #60269

t-hamano opened this issue Mar 28, 2024 · 0 comments · Fixed by #60270
Assignees
Labels
[Block] Details Affects the Details Block - used to display content which can be shown/hidden [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@t-hamano
Copy link
Contributor

Description

This issue is derived from this core ticket: https://core.trac.wordpress.org/ticket/60808#comment:10

You can open and close the content by clicking the summary element, which means the summary element is a focusable element.

When focusing on the summary element, the focus outline should be displayed, but since overflow:hidden; is applied to the Details block itself, the outline may be cut off or not displayed at all.

Step-by-step reproduction instructions

  • Insert the details block and save the post.
  • Use the tab key on your keyboard in the front end to focus the summary element.
  • Press enter to see the focus style when the content is opened.

Screenshots, screen recording, code snippet

Emptytheme

Summary element is focused

The thickness of the focus outline is thin.

image

When content is open

The sides except the bottom are thin.

image

Twenty Twenty-Four

Summary element is focused

The focus outline is not displayed at all.

image

When content is open

Only the bottom outline is visible.

image

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Details Affects the Details Block - used to display content which can be shown/hidden labels Mar 28, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Details Affects the Details Block - used to display content which can be shown/hidden [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant