Skip to content
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

docs(material/dialog): use h2 for dialog title #28519

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

PowerKiKi
Copy link
Contributor

Because the vast majority of pages will already have an <h1>, and MDN now recommends to avoid using multiple <h1> elements on one page. So we should strive to show code examples that can be copy-pasted as is.

See also:

@PowerKiKi
Copy link
Contributor Author

Are browserstack tests flaky ? or did I indeed broke something ?

@crisbeto
Copy link
Member

crisbeto commented Feb 1, 2024

I think it's a flake, but I'll restart it just in case.

@crisbeto crisbeto self-assigned this Feb 1, 2024
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Feb 1, 2024
@crisbeto
Copy link
Member

crisbeto commented Feb 1, 2024

@PowerKiKi it looks like this needs to be rebased.

Because the vast majority of pages will already have an `<h1>`, and MDN
now recommends to avoid using multiple `<h1>` elements on one page. So
we should strive to show code examples that can be copy-pasted as is.

See also:

- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#avoid_using_multiple_h1_elements_on_one_page
- https://stackoverflow.com/a/38467898/37706
- https://accessibleweb.com/question-answer/how-should-i-handle-headings-in-a-modal/
@PowerKiKi
Copy link
Contributor Author

rebased

@angular-robot angular-robot bot requested a review from crisbeto February 1, 2024 10:36
@crisbeto crisbeto merged commit 14d5de1 into angular:main Feb 1, 2024
23 of 24 checks passed
crisbeto pushed a commit that referenced this pull request Feb 1, 2024
Because the vast majority of pages will already have an `<h1>`, and MDN
now recommends to avoid using multiple `<h1>` elements on one page. So
we should strive to show code examples that can be copy-pasted as is.

See also:

- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#avoid_using_multiple_h1_elements_on_one_page
- https://stackoverflow.com/a/38467898/37706
- https://accessibleweb.com/question-answer/how-should-i-handle-headings-in-a-modal/

(cherry picked from commit 14d5de1)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 3, 2024
@PowerKiKi PowerKiKi deleted the dialog-title branch March 3, 2024 02:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: docs Related to the documentation target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants