This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-icon] accessibility upgrade (#3598)
- Loading branch information
Showing
560 changed files
with
7,710 additions
and
876 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
94 changes: 47 additions & 47 deletions
94
packages/terra-core-docs/src/terra-dev-site/doc/icon/example/IconStatic.jsx
Large diffs are not rendered by default.
Oops, something went wrong.
456 changes: 228 additions & 228 deletions
456
packages/terra-core-docs/src/terra-dev-site/doc/icon/example/IconThemeable.jsx
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
packages/terra-core-docs/src/terra-dev-site/test/icon/IconAccessibleLabel.test.jsx
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import IconAlert from 'terra-icon/lib/icon/IconAlert'; | ||
import IconAlertDecorative from 'terra-icon/lib/icon/decorative/IconAlert'; | ||
|
||
const IconAccessibleLabel = () => ( | ||
<div> | ||
<h3>Meaningful icon</h3> | ||
<div> | ||
<IconAlert a11yLabel="alert icon"/> | ||
</div> | ||
|
||
<h3>Decorative icon</h3> | ||
<div> | ||
<IconAlertDecorative a11yLabel="alert icon"/> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default IconAccessibleLabel; |
2 changes: 1 addition & 1 deletion
2
packages/terra-core-docs/src/terra-dev-site/test/icon/IconAll.module.scss
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,8 @@ | ||
:local { | ||
.icon { | ||
height: 40px; | ||
margin: 5px; | ||
width: 40px; | ||
margin: 5px; | ||
} | ||
|
||
.icon-inverse { | ||
|
618 changes: 309 additions & 309 deletions
618
packages/terra-core-docs/src/terra-dev-site/test/icon/IconAll.test.jsx
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
packages/terra-core-docs/src/terra-dev-site/test/icon/IconAriaLabel.test.jsx
This file was deleted.
Oops, something went wrong.
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
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
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,10 +1,26 @@ | ||
# Update all SVG icons | ||
|
||
``` | ||
npm run migrate-cerner-one-icons | ||
``` | ||
* npm run compilescripts | ||
* npm run migrate-csv | ||
* npm run migrate-svg | ||
* npm run generate-icon | ||
* npm run generate-example | ||
### Step 1. Initate scripts | ||
|
||
npm run compilescripts | ||
|
||
### Step 2. (Optional) Migrate icons from a csv file | ||
You can skip this step if you're not updating the svg files in `packages/terra-icon/src/svg`. | ||
|
||
npm run migrate-csv | ||
npm run migrate-svg | ||
|
||
### Step 3. Generate icons based | ||
This will generate icons based on the files in `packages/terra-icon/src/svg`, whether they are newly migrated or pre-existing. | ||
|
||
npm run generate-all-icons | ||
|
||
Meaningful icons will be generated in `packages/terra-icon/src/icon`, directly in the folder. | ||
Decorative icons will be generated in `packages/terra-icon/src/icon/decorative`. | ||
|
||
|
||
### Alternative run all steps command | ||
|
||
Alternatively, if you need to run steps 1, 2 and 3, then you can execute them all with a single command: | ||
|
||
npm run migrate-cerner-one-icons |
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
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
Oops, something went wrong.