Make WordPress Core

Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#60923 closed defect (bug) (duplicate)

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

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

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 13 months 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
13 months 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
13 months ago

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

#2 @sabernhardt
13 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Severity changed from critical to normal
  • Status changed from assigned to closed

Hi and thanks for the report!

The focus outline is already tracked on #60808.

#3 @thesoftmall
13 months ago

  • Resolution duplicate deleted
  • Status changed from closed to reopened

#4 @thesoftmall
13 months ago

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

#5 @thesoftmall
13 months ago

  • Resolution set to invalid
  • Status changed from reopened to 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
13 months 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
13 months 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 13 months ago by thesoftmall (previous) (diff)

#8 @thesoftmall
13 months ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

#9 @sabernhardt
13 months ago

  • Resolution set to duplicate
  • Status changed from reopened to 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
13 months 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.