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