Skip to content

v6.0.0

Compare
Choose a tag to compare
@liamdebeasi liamdebeasi released this 08 Nov 21:32
· 157 commits to main since this release
1038a7f
  • fix(icon): avoid type collisions with ariaLabel and ariaHidden (#1014) 1038a7f

v5.5.4...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:

  1. Using Ionicons via JavaScript:
// Before
iconEl.ariaHidden = "true";

// After
iconEl.setAttribute('aria-hidden', 'true');
  1. 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