Commit f79e4d1
authored
fix(a11y): inline placeholder title uses <p>, not <h4> (#482)
The inline placeholder for blocked third-party embeds (YouTube,
Vimeo, …) hard-wired a <h4> element for the service title. When the
placeholder is rendered inside arbitrary page content, this almost
always breaks the document outline (a <section> already running on
<h2>/<h3> suddenly contains a stray <h4> with no parent heading).
Lighthouse and other a11y audits flag this as a heading-order issue.
Switches the tag to <p> so it no longer participates in the heading
outline, but keeps the existing .consent-inline-title class plus the
Bootstrap-style .h4 utility class. Themes/styles that already target
the class or .h4 typography stay visually identical; no CSS change
needed (consent_inline.css selectors are class-based).
Themes that *do* want a real heading can still override the fragment
locally via theme/private/fragments/ConsentManager/inline_placeholder.php.1 parent 4a885ca commit f79e4d1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments