-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use <h1>
for all modal-title
examples/uses
#37210
Conversation
003571b
to
4082666
Compare
* Use `fs-` font sizing classes where needed * Also add info callout about heading hierarchy in modals
50439e8
to
6eaf6d0
Compare
I'm wondering if the target release shouldn't be v5.3.0 for this one since there is a semantics impact on how the titles can be used. |
@julien-deramond it's only a change in the suggested markup authors should use. it'll still work the same if they use |
I've just raised an issue with this, this should never have been changed, as this will now have disastrous impact on those who don't change it from H1 to something else, as they will end up with several H1s on the page now... This will massively negatively impact their page rankings, and needs to be removed / reverted back to anything H2 or lower as soon as possible. This should NEVER be H1! |
@leecollings-sb first of all, this is a change to the suggested markup we document. if you, when using bootstrap, feel like your dialogs should use
evidence for this? the |
My point was that it's not appropriate for documentation, which most people will take and not change, leaving them in bad situations. There was nothing wrong with how it was before. It was actually |
no it wasn't. once a modal is open, it is in essence a new mini document (as the underlying page is now hidden from assistive technologies). it is the primary heading now for the modal |
Maybe that's changed, but lots of other crawlers and SEO optimisation tools will always flag up multiple H1s on a page. Ii's just a common thing, you just don't do it. And your latest comment about being hidden, the page crawlers won't see this or know wha tto dow ith that, they'll see more than H1 on the page, and then flag this as a big red issue. |
Description
<h5>
s for.modal-title
to<h1>
sfs-
font sizing classes where neededMotivation & Context
Closes #37179
Type of changes
Checklist
npm run lint
)Live previews