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(action-sheet): add htmlAttributes property for passing attributes to buttons #27863

Merged
merged 5 commits into from
Jul 31, 2023

Conversation

brandyscarney
Copy link
Member

Issue number: N/A


What is the current behavior?

Buttons containing only icons are not accessible as there is no way to pass an aria-label attribute (or any other html attribute).

What is the new behavior?

  • Adds the htmlAttributes property on the ActionSheetButton interface
  • Passes the htmlAttributes to the buttons (both the buttons array and the cancelButton)
  • Adds two tests to verify aria-label and aria-labelled-by are passed to a button with and without the cancel role - this was done because action sheet breaks these buttons up when rendering

Does this introduce a breaking change?

  • Yes
  • No

@stackblitz
Copy link

stackblitz bot commented Jul 26, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions bot added the package: core @ionic/core package label Jul 26, 2023
@brandyscarney brandyscarney changed the base branch from main to feature-7.3 July 27, 2023 15:12
@brandyscarney brandyscarney marked this pull request as ready for review July 27, 2023 15:17
@brandyscarney brandyscarney requested review from a team and liamdebeasi and removed request for a team July 27, 2023 16:05
Copy link
Contributor

@sean-perkins sean-perkins left a comment

Choose a reason for hiding this comment

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

Good work 👍

@brandyscarney brandyscarney merged commit 5ce4ec0 into feature-7.3 Jul 31, 2023
43 checks passed
@brandyscarney brandyscarney deleted the FW-4240-action-sheet branch July 31, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants