Skip to content

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

@bolt-new-by-stackblitz
Copy link

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 force-pushed the FW-4240-action-sheet branch from d03a7b6 to 91d796c Compare July 27, 2023 15:15
@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
@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