-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make area-hidden not false by "default" on #icon component
- Loading branch information
1 parent
b7843ea
commit 18b16f2
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
| Properties | Description | | ||
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `icon` | _(mandatory)_ a React SVG Component or the icon name (in case we use `IconPrimary` or `dnb-icon-primary`). | | ||
| `alt` | _(mandatory)_ the alternative label (text version) of the icon. | | ||
| `size` | _(optional)_ the dimension of the icon. This will be the `viewBox` and represent `width` and `height`. Defaults to `16`. You can use `small`,`medium` or `large` | | ||
| `color` | _(optional)_ sets a color property to the `svg` markup. Default is no color, witch means _black_ | | ||
| `modifier` | _(optional)_ modifier class to define e.g. sizes. | | ||
| `attributes` | _(optional)_ insert any other attributes. For example `disabled` or any other custom attributes. | | ||
| Properties | Description | | ||
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `icon` | _(mandatory)_ a React SVG Component or the icon name (in case we use `IconPrimary` or `dnb-icon-primary`). | | ||
| `alt` | _(mandatory)_ the alternative label (text version) of the icon. | | ||
| `size` | _(optional)_ the dimension of the icon. This will be the `viewBox` and represent `width` and `height`. Defaults to `16`. You can use `small`,`medium` or `large` | | ||
| `color` | _(optional)_ sets a color property to the `svg` markup. Default is no color, witch means _black_ | | ||
| `modifier` | _(optional)_ modifier class to define e.g. sizes. | | ||
| `area_hidden` | _(optional)_ To declare that the icon should not be visible to screen readers. | | ||
| `attributes` | _(optional)_ insert any other attributes. For example `disabled` or any other custom attributes. | |