Skip to content

feat(alert): add htmlAttributes property for passing attributes to buttons#27862

Merged
brandyscarney merged 6 commits intofeature-7.3from
FW-4240-alert
Jul 31, 2023
Merged

feat(alert): add htmlAttributes property for passing attributes to buttons#27862
brandyscarney merged 6 commits intofeature-7.3from
FW-4240-alert

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 AlertButton interface
  • Passes the htmlAttributes to the buttons
  • Adds a test to verify aria-label and aria-labelled-by are passed to the button

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 marked this pull request as ready for review July 27, 2023 15:18
@brandyscarney brandyscarney requested review from a team and sean-perkins and removed request for a team July 27, 2023 16:05
@brandyscarney brandyscarney merged commit 06be0e5 into feature-7.3 Jul 31, 2023
@brandyscarney brandyscarney deleted the FW-4240-alert branch July 31, 2023 17:16
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.

3 participants