Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#60923 closed defect (bug) (duplicate)

Twenty Twenty-Four: Rectangular box around clickable elements in theme update 1.1

Reported by: thesoftmall Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version: 6.5
Severity: normal Keywords: has-screenshots
Cc: Focuses: ui

Description

The clickable elements like linked texts, search box, detail block, when clicked, a rectangular box appears around the text.

Attachments (1)

siteblackbox.png (99.3 KB ) - added by thesoftmall 2 years ago.
when i clicked the arrow box appeared arounf the text, this happens with the normal linked text as well when they are clicked, after 2024-theme update 1.1

Download all attachments as: .zip

Change History (11)

@thesoftmall
2 years ago

when i clicked the arrow box appeared arounf the text, this happens with the normal linked text as well when they are clicked, after 2024-theme update 1.1

#1 @SergeyBiryukov
2 years ago

  • Component ThemesBundled Theme
  • Summary bug in theme twenty twenty-four update 1.1Twenty Twenty-Four: Rectangular box around clickable elements in theme update 1.1

#2 @sabernhardt
2 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Severity criticalnormal
  • Status assignedclosed

Hi and thanks for the report!

The focus outline is already tracked on #60808.

#3 @thesoftmall
2 years ago

  • Resolution duplicate
  • Status closedreopened

#4 @thesoftmall
2 years ago

but whats the solution and where to apply solution give the path.

#5 @thesoftmall
2 years ago

  • Resolutioninvalid
  • Status reopenedclosed

alright i got tried it and solved it for now, in theme editor go to themes.json file, and change the code line "css": ":where(.wp-site-blocks *:focus){outline-width:2px;outline-style:solid}", change 2px to 0. And the matter will be solved its solved for me this way

#6 follow-up: @sabernhardt
2 years ago

The current suggestion is changing :focus to :focus-visible in theme.json.

:where(.wp-site-blocks *:focus-visible){outline-width:2px;outline-style:solid}

If you completely remove the focus outline, people will not know which element is focused when navigating by keyboard. The darker outline is not a bug; it's simply not desired in all situations.

#7 @thesoftmall
2 years ago

@sabernhardt whats the other solution according to you then? in 2024theme version 1.0 it was not there this problem occured in version 1.1

Last edited 2 years ago by thesoftmall (previous) (diff)

#8 @thesoftmall
2 years ago

  • Resolution invalid
  • Status closedreopened

#9 @sabernhardt
2 years ago

  • Resolutionduplicate
  • Status reopenedclosed

Duplicate of #60808.

The code is in comment:6.

Also, you do not need to reopen tickets to continue the conversation.

#10 in reply to: ↑ 6 @thesoftmall
2 years ago

yes made these changes now thankyou ..Replying to sabernhardt:

The current suggestion is changing :focus to :focus-visible in theme.json.

:where(.wp-site-blocks *:focus-visible){outline-width:2px;outline-style:solid}

If you completely remove the focus outline, people will not know which element is focused when navigating by keyboard. The darker outline is not a bug; it's simply not desired in all situations.

Note: See TracTickets for help on using tickets.