Releases: ionic-team/ionicons
Releases · ionic-team/ionicons
v7.0.0
7.0.0 (2023-03-07)
Migration Note: Developers should ensure that their <ion-icon>
usages have either aria-label
or aria-hidden
to avoid accessibility issues. See https://ionic.io/ionicons/usage for more information.
Bug Fixes
v6.1.3
v6.1.2
v6.1.1
v6.1.0
v6.0.4
v6.0.3
v6.0.2
v6.0.1
v6.0.0
BREAKING CHANGE:
The ariaLabel
and ariaHidden
properties have been removed in favor of using the aria-label
and aria-hidden
attributes. For most developers there will be no change in behavior. Please review the migration steps below to see if you need to update your application:
- Using Ionicons via JavaScript:
// Before
iconEl.ariaHidden = "true";
// After
iconEl.setAttribute('aria-hidden', 'true');
- Using Ionicons via JSX in React
{/* Before */}
<IonIcon ariaHidden="true" />
{/* After */}
<IonIcon aria-hidden="true" />
This change is more aligned with what React expects: https://reactjs.org/docs/accessibility.html#wai-aria