Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 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 3 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
3 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
3 years ago

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

#2 @sabernhardt
3 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Severity critical → normal
  • Status assigned → closed

Hi and thanks for the report!

The focus outline is already tracked on #60808.

#3 @thesoftmall
3 years ago

  • Resolution duplicate
  • Status closed → reopened

#4 @thesoftmall
3 years ago

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

#5 @thesoftmall
3 years ago

  • Resolution → invalid
  • Status reopened → closed

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
3 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
3 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 3 years ago by thesoftmall (previous) (diff)

#8 @thesoftmall
3 years ago

  • Resolution invalid
  • Status closed → reopened

#9 @sabernhardt
3 years ago

  • Resolution → duplicate
  • Status reopened → closed

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
3 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.