Visitar URL original
Move Examples after Best practices on ARIA role pages + template by caugner · Pull Request #46488 · mdn/content · GitHub
Skip to content

Move Examples after Best practices on ARIA role pages + template - #46488

Merged
Josh-Cena merged 7 commits into
mainfrom
aria-role-section-order
Nov 20, 2026
Merged

Josh-Cena merged 7 commits into
mainfrom
aria-role-section-order

Conversation

@caugner

@caugner caugner commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Move the Examples section after Accessibility concerns and Best practices, directly before Specifications, on 45 ARIA role pages, and update the ARIA page template to match.

  • Move Precedence order, Accessibility concerns, and Best practices before Examples in the ARIA page template.

Motivation

  • Keep Examples, Specifications, and See also as the last sections, so all other content comes before them.
  • Role pages were inconsistent: some placed Examples before Accessibility concerns and Best practices, others after.
  • Make the ARIA page template and ARIA attribute pages follow the same convention.

Additional details

Sections are moved as-is; their content is unchanged.

The scope was extended during review by Josh-Cena: the original 3 pages followed the majority order, and he moved Examples after Accessibility concerns and Best practices on the remaining role pages and in the template.

Related issues and pull requests

Part of mdn/mdn#888.

@github-actions github-actions Bot added Content:Accessibility Accessibility docs size/s [PR only] 6-50 LoC changed labels Nov 12, 2026
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor
Preview URLs (46 pages)
External URLs (4)

URL: /en-US/docs/Web/Accessibility/ARIA/Reference/Roles/feed_role
Title: ARIA: feed role


URL: /en-US/docs/Web/Accessibility/ARIA/Reference/Roles/listbox_role
Title: ARIA: listbox role


URL: /en-US/docs/Web/Accessibility/ARIA/Reference/Roles/toolbar_role
Title: ARIA: toolbar role

(comment last updated: 2026-11-20 18:08:37)

@caugner
caugner marked this pull request as ready for review November 12, 2026 09:44
@caugner
caugner requested a review from a team as a code owner November 12, 2026 09:44
@caugner
caugner requested review from estelle and removed request for a team November 12, 2026 09:44
@github-actions github-actions Bot added size/xl [PR only] >1000 LoC changed and removed size/s [PR only] 6-50 LoC changed labels Nov 12, 2026

@Josh-Cena Josh-Cena left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, thank you.

I decided to forgo the common practice and stick to what we do everywhere else: Examples - Specifications - See also in that order at the end, and everything should come before them.

@Josh-Cena
Josh-Cena requested a review from a team as a code owner November 12, 2026 19:39
@Josh-Cena
Josh-Cena requested review from chrisdavidmills and removed request for a team November 12, 2026 19:39
@github-actions github-actions Bot added the Content:Meta Content in the meta docs label Nov 12, 2026
@Josh-Cena

Josh-Cena commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Technically a change in editorial convention so requesting more feedback from @mdn/accessibility , but since the status quo is inconsistent anyway, and also inconsistent with other sections like HTML and CSS, I don't expect major disputes about this change.

@chrisdavidmills chrisdavidmills left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked several of the pages (not all), and they largely match the template structure. I've got a couple of comments to consider.


What are the related properties, and in what order will this attribute or property be read (which property will take precedence over this one, and which property will be overwritten.)

## Screen reader support

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section doesn't seem to appear on any other page. Should it be here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wishful thinking, I guess. We can talk about this later. This PR just deals with reordering


- [WebAIM: "Skip Navigation" Links](https://webaim.org/techniques/skipnav/)

## Example

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per the template, this should be "Examples". There might be other instances; check through the other pages?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very common problem throughout content and in all past PRs we've kept them as is. A later PR can update all of these

@OALOLYANI

This comment was marked as spam.

@caugner caugner changed the title Reorder sections on ARIA role pages Move Examples after Best practices on ARIA role pages + template Nov 16, 2026
@caugner

caugner commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator Author

@Josh-Cena Two role pages still have Examples before Accessibility concerns, so they don't follow the order this PR applies to the rest:

  • treegrid_role: Description > Examples > Accessibility concerns > Best Practices > Specifications
  • separator_role: Description > Examples > Accessibility concerns > Best Practices > Specifications > See also

Should these be moved in this PR as well, so that all role pages end with Examples > Specifications > See also? I can push a commit for that and update the description (47 pages instead of 45).

Edit: Actually, these are commented out (my linter prototype doesn't distinguish this yet).

@Josh-Cena

Copy link
Copy Markdown
Member

my linter prototype doesn't distinguish this yet

😄 May I suggest analyzing the HTML output instead of the raw Markdown? This way you can include headings possibly injected by macros too (probably only InteractiveExample)

@caugner

caugner commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author

headings possibly injected by macros too (probably only InteractiveExample)

TIL about macros injecting headings.

@Josh-Cena

Copy link
Copy Markdown
Member

Yes, macros were the major reason why https://mdn-graph.joshcena.com/warnings exclusively lints the build output

@Josh-Cena

Copy link
Copy Markdown
Member

Will merge in a few days without further comments

@github-actions github-actions Bot added the merge conflicts 🚧 [PR only] label Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions Bot removed the merge conflicts 🚧 [PR only] label Nov 17, 2026
@caugner

caugner commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

@Josh-Cena Should we merge or is there anything left to address here before?

@Josh-Cena

Copy link
Copy Markdown
Member

Yep, I think the "a few days" deadline has elapsed. Thank you

@Josh-Cena
Josh-Cena merged commit 5af4f6e into main Nov 20, 2026
15 checks passed
@Josh-Cena
Josh-Cena deleted the aria-role-section-order branch November 20, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Accessibility Accessibility docs Content:Meta Content in the meta docs size/xl [PR only] >1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants