Source skip link lowered to core/button in every template, duplicating core's block-theme skip link
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Start by locating the code that converts source links into blocks and the template generation path; the issue does not name specific files or tests. Use the minimal HTML case to check whether the skip link is omitted, the main anchor remains, and front-end appearance at rest is unchanged. Then verify the stated kroonsbeautysalon.nl import has no generated skip-link button across its templates.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
A source "skip to content" link is lowered to a core/button in every generated template. Block themes already get core's skip link (a#wp-skip-link.skip-link.screen-reader-text, injected by wp_enqueue_block_template_skip_link()), so every route ships two skip links. The source one is an editable visible button in the Site Editor, and it is duplicated into all 9 templates.
kroonsbeautysalon.nl (Jimdo, trunk): <a href="#main-content" class="jw-skip-link">Ga direct naar de hoofdinhoud</a> becomes core/button ("Ga direct naar de hoofdinhoud", white text, blocks-engine-layout-child-button) at the top of front-page.html, page.html, index.html, single.html, archive.html, search.html, 404.html and both route templates. Core's skip link is also present on each page. It also adds a non-content button that blocks site-wide button-style inference (#3716).
Minimal case
<body><a class="skip" href="#main">Skip to content</a><header>…</header><main id="main"><h1>Hi</h1></main></body>
<style>.skip{position:absolute;left:-9999px}.skip:focus{left:8px;top:8px}</style>
Expected: no block is generated for the skip link. Core's skip link targets the main landmark. The source's #main target id survives on the main group, so in-page #main links still resolve.
Expected
Recognise a skip link structurally: the first focusable in-page link whose target is the main landmark (or its first child), hidden until focus. Drop it in favour of core's template skip link. Keep any visible-until-focus styling irrelevant to parity because it is off-screen at rest.
Acceptance
- A contract fixture: the minimal case yields no
core/buttonor paragraph for the link,mainkeeps its anchor, and front-end parity at rest is unchanged. - Real check: a kroonsbeautysalon.nl import has no "Ga direct naar de hoofdinhoud" block in any template, and one skip link per page (core's).
Investigated by Franklin (Pi via Roadie, anthropic/claude-opus).
- Lingua principale
- PHP
- Stelle
- 25
- Fork
- 3
- Merge medio
- 2h 29m
- PR unite (30g)
- 931
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Automattic/blocks-engine
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Automattic/blocks-engine#4874 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
Automattic/blocks-engine#4836 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Automattic/blocks-engine#775 ·
I maintainer di solito rispondono entro 1 giorno
-
Shared-chrome CSS factoring merges device-document stylesheets, so phones render the desktop widthAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Automattic/blocks-engine#4894 ·
I maintainer di solito rispondono entro 1 giorno
-
non core block: layout-shell@a[data-testid][href][target]Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 46/100
Automattic/blocks-engine#4888 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Automattic/blocks-engine
Issue simili
-
claude
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
sprain/sprainocchio#26 ·
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 83/100
GSA/digital-gov-drupal#569 ·
I maintainer di solito rispondono entro 2 giorni
-
feature-request-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Codeinwp/wp-menu-icons#360 ·