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

feat(mat/checkbox): add new aria properties to MatCheckbox #29457

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

jullierme
Copy link
Contributor

Added three new aria properties to MatCheckbox:

aria-expanded: Indicates whether the checkbox controls the visibility of another element. This should be a boolean value (true or false). aria-controls: Specifies the ID of the element that the checkbox controls. aria-owns: Specifies the ID of the element that the checkbox visually owns. These attributes will be added to the generated checkbox element if they are specified, and won't be present in the HTML if not provided. Also added a small paragraph at the end of the checkbox.md file.

Fixes #28761

@jullierme jullierme requested a review from a team as a code owner July 18, 2024 22:11
@jullierme jullierme requested review from mmalerba and andrewseguin and removed request for a team July 18, 2024 22:11
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Jul 18, 2024
@crisbeto
Copy link
Member

crisbeto commented Sep 9, 2024

Sorry for the delay here. Can you rebase the PR?

@jullierme jullierme force-pushed the add-checkbox-aria-missing-attibutes branch from ab35145 to 6d97933 Compare September 9, 2024 20:47
Added three new aria properties to MatCheckbox:
`aria-expanded`: Indicates whether the checkbox controls the visibility
of another element. This should be a boolean value (true or false).
`aria-controls`: Specifies the ID of the element that the checkbox controls.
`aria-owns`: Specifies the ID of the element that the checkbox visually owns.
These attributes will be added to the generated checkbox element if they
are specified and won't be present in the HTML if not provided.
Also added a small paragraph at the end of the checkbox.md file.

Fixes angular#28761
Added three new aria properties to MatCheckbox:
`aria-expanded`: Indicates whether the checkbox controls the visibility
of another element. This should be a boolean value (true or false).
`aria-controls`: Specifies the ID of the element that the checkbox controls.
`aria-owns`: Specifies the ID of the element that the checkbox visually owns.
These attributes will be added to the generated checkbox element if they
are specified and won't be present in the HTML if not provided.
Also added a small paragraph at the end of the checkbox.md file.

Fixes angular#28761
@jullierme jullierme force-pushed the add-checkbox-aria-missing-attibutes branch from 8166cfc to 8a6e2d1 Compare September 9, 2024 21:30
@jullierme
Copy link
Contributor Author

Sorry for the delay here. Can you rebase the PR?

No problem @crisbeto! It's done now :) There is this //tools/public_api_guard:material/checkbox.md_api that is failing... Will check it tomorrow

@crisbeto
Copy link
Member

You just need to run yarn approve-api checkbox and push the changed file.

Added three new aria properties to MatCheckbox:
`aria-expanded`: Indicates whether the checkbox controls the visibility
of another element. This should be a boolean value (true or false).
`aria-controls`: Specifies the ID of the element that the checkbox controls.
`aria-owns`: Specifies the ID of the element that the checkbox visually owns.
These attributes will be added to the generated checkbox element if they
are specified and won't be present in the HTML if not provided.
Also added a small paragraph at the end of the checkbox.md file.

Fixes angular#28761
@jullierme
Copy link
Contributor Author

Done, @crisbeto! Thanks for reviewing it and also the public API info.

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Sep 10, 2024
@crisbeto crisbeto added the merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed label Sep 10, 2024
@crisbeto crisbeto merged commit 9122335 into angular:main Sep 10, 2024
26 of 28 checks passed
@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 Oct 11, 2024
@jullierme jullierme deleted the add-checkbox-aria-missing-attibutes branch November 20, 2024 18: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 detected: feature PR contains a feature commit merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(material/checkbox): MatCheckbox is missing support for aria-expanded attribute
2 participants