1.1.1 • Published 4 months ago

@digitalservicebund/icons v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Icons

Google's Material UI icons re-packaged as a set of React components without being dependent on Emotion.

Installation

npm install --save @digitalservicebund/icons

Usage

import WarningAmberIcon from "@digitalservicebund/icons/WarningAmber";

<WarningAmberIcon />

<WarningAmberIcon className="w-48 h-48" />

Accessibility

By default, the icons provided are hidden from screen readers (using aria-hidden="true"). It is assumed that icons are used purely for decorative purposes. That they only ever accompany a text that is meaningful even without an icon.

If this is not the case and the icon has sematic meaning, you have to take extra steps. Sara Soueidan shows some techniques regarding Accessible Icon Buttons.

Just in case you make an icon visible to screen readers, icons also have an appropriate ARIA role (role="graphics-symbol").

1.1.1

4 months ago

1.1.0

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago