github ionic-team/ionicons v6.0.0

latest releases: v7.4.0, v7.3.1, v7.3.0...
2 years ago
  • 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

Don't miss a new ionicons release

NewReleases is sending notifications on new releases.