Make WordPress Core

Opened 6 weeks ago

Closed 4 weeks ago

Last modified 3 weeks ago

#62967 closed defect (bug) (fixed)

Twenty Twelve: Skip link located after menu button.

Reported by: joedolson's profile joedolson Owned by: joedolson's profile joedolson
Milestone: 6.8 Priority: normal
Severity: normal Version: 3.5
Component: Bundled Theme Keywords: good-first-bug has-patch needs-testing has-screenshots
Focuses: accessibility Cc:

Description

The skip link should be the first focusable object in the page; it's disorienting for it to appear in any other order. In this case, it literally means that on mobile the Skip link doesn't skip anything by default, because there is no content between the skip link and the main content.

Attachments (9)

2014 - before.png (86.9 KB) - added by vgnavada 5 weeks ago.
TWENTY FOURTEEN - BEFORE
2014 - after.png (82.4 KB) - added by vgnavada 5 weeks ago.
TWENTY FOURTEEN - AFTER
2013- before fix.jpg (204.4 KB) - added by krupajnanda 5 weeks ago.
2013 - after fix.jpg (196.4 KB) - added by krupajnanda 5 weeks ago.
2014 - after (in responsive).png (30.7 KB) - added by vgnavada 5 weeks ago.
TWENTY FOURTEEN - AFTER - RESPONSIVE
2012 - BEFORE.png (78.2 KB) - added by vgnavada 5 weeks ago.
2012 - AFTER.png (83.4 KB) - added by vgnavada 5 weeks ago.
2012 - AFTER RESPONSIVE.png (26.2 KB) - added by vgnavada 5 weeks ago.
twenty-twelve-after-patch.png (42.9 KB) - added by shailu25 5 weeks ago.
After Patch.

Download all attachments as: .zip

Change History (20)

This ticket was mentioned in PR #8328 on WordPress/wordpress-develop by @abcd95.


6 weeks ago
#1

  • Keywords has-patch added

#2 @shanemuir
6 weeks ago

  • Keywords needs-testing added

#3 @joedolson
6 weeks ago

  • Owner set to joedolson
  • Status changed from new to accepted

@abcd95 commented on PR #8328:


5 weeks ago
#4

Hey @sabernhardt Thanks for the suggestions!

I have also updated the changes and moved the skip links inside the page div for the Twenty Thirteen and Twenty Fourteen themes. Please let me know if the changes look good to you whenever you have time.

Thanks.

#5 @krupajnanda
5 weeks ago

  • Keywords has-screenshots added

Hello

I have tested the PR for 2013 theme with playground and the added fix looks good to me.

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/8327

Environment

  • WordPress: 6.8-alpha-20250217.044510
  • PHP: 7.4.31-dev
  • Server: PHP.wasm
  • Database: WP_SQLite_Translator (Server: 5.5 / Client: 3.40.1)
  • Browser: Chrome 133.0.0.0
  • OS: macOS
  • Theme: Twenty Thirteen 4.3
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Issue resolved with patch.

Additional test

The added fix has also been verified with responsive mode.

Supplemental Artifacts

Add as Attachment

Last edited 5 weeks ago by krupajnanda (previous) (diff)

#6 @vgnavada
5 weeks ago

  • Keywords has-screenshots added

Hi, I've tested the TWENTY FOURTEEN & TWENTY TWELVE theme with the added fix on Playground and it is working as expected.

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested:
THEME 2014 - https://github.com/WordPress/wordpress-develop/pull/8326
THEME 2012 - https://github.com/WordPress/wordpress-develop/pull/8328

Environment

  • WordPress: 6.8-alpha-20250217.045205
  • PHP: 7.4.31-dev
  • Server: PHP.wasm
  • Database: WP_SQLite_Translator (Server: 5.5 / Client: 3.40.1)
  • Browser: Chrome 132.0.0.0
  • OS: macOS
  • Theme: Twenty Fourteen 4.1
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Issue resolved with patch.

Additional Notes

  • Also checked in responsive mode and it's working as expected

Supplemental Artifacts

Add as Attachment

Last edited 5 weeks ago by vgnavada (previous) (diff)

@vgnavada
5 weeks ago

TWENTY FOURTEEN - BEFORE

@vgnavada
5 weeks ago

TWENTY FOURTEEN - AFTER

@vgnavada
5 weeks ago

TWENTY FOURTEEN - AFTER - RESPONSIVE

This ticket was mentioned in Slack in #core-test by krupajnanda. View the logs.


5 weeks ago

@vgnavada
5 weeks ago

#8 @shailu25
5 weeks ago

Test Report

Patch Tested: https://github.com/WordPress/wordpress-develop/pull/8328

Environment:
WordPress - 6.8-alpha-20250217.044510
OS - Windows
Browser - Firefox
Theme: Twenty Twelve
PHP - 8.2.12
Active Plugin: None

Actual Results:

  • Issue Resolved with patch.✅

Screenshot:

  • Added Attachment

@shailu25
5 weeks ago

After Patch.

#9 @joedolson
4 weeks ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In [59912]:

Bundled Themes: Twenty Twelve: Move skip link to top of body.

Move the skip link to the top of the body content, so it is the first focusable item on the page.

Props joedolson, sabernhardt, abcd95, vgnavada, shailu25.
Fixes #62967.

@abcd95 commented on PR #8328:


3 weeks ago
#10

Merged in the changeset - [59912]

@sabernhardt commented on PR #8328:


3 weeks ago
#11

I planned to gather screenshots, and they look fine in Twenty Twelve.

Before r59912:
https://github.com/user-attachments/assets/037ae7f5-a960-4125-84ca-6c81b7e7a361

Twenty Twelve now inherits a few styles from block-library/style.css, and the skip links are still in the top corner.

line-height: normal;
text-decoration: none;
margin: -1px;

https://github.com/user-attachments/assets/62b3f7c8-c690-419f-a168-c9638bbc277e

Note: See TracTickets for help on using tickets.