Skip to content

Commit

Permalink
feat(theme): add $icon-interactive token (#13219)
Browse files Browse the repository at this point in the history
* feat(theme): add $icon-interactive token

* Update packages/themes/src/tokens/v11TokenGroup.js

Co-authored-by: Alison Joseph <alisonejoseph@Gmail.com>

* Update packages/themes/src/tokens/__tests__/metadata-test.js

Co-authored-by: Alison Joseph <alisonejoseph@Gmail.com>

* Update packages/themes/src/tokens/__tests__/__snapshots__/v11-test.js.snap

* Update packages/themes/src/tokens/__tests__/__snapshots__/v11-test.js.snap

* chore(snapshot): update snapshots

---------

Co-authored-by: Alison Joseph <alisonejoseph@Gmail.com>
Co-authored-by: Francine Lucca <40550942+francinelucca@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 2, 2023
1 parent 22d87ca commit b32cee5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Array [
"helperText02",
"highlight",
"iconDisabled",
"iconInteractive",
"iconInverse",
"iconOnColor",
"iconOnColorDisabled",
Expand Down
1 change: 1 addition & 0 deletions packages/styles/scss/__tests__/theme-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ describe('@carbon/styles/scss/theme', () => {
"icon-on-color",
"icon-on-color-disabled",
"icon-disabled",
"icon-interactive",
"support-error",
"support-success",
"support-warning",
Expand Down
1 change: 1 addition & 0 deletions packages/themes/src/g10.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const iconInverse = white;
export const iconOnColor = white;
export const iconOnColorDisabled = gray50;
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
export const iconInteractive = blue60;

// Support
export const supportError = red60;
Expand Down
1 change: 1 addition & 0 deletions packages/themes/src/g100.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export const iconInverse = gray100;
export const iconOnColor = white;
export const iconOnColorDisabled = adjustAlpha(iconOnColor, 0.25);
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
export const iconInteractive = white;

// Support
export const supportError = red50;
Expand Down
1 change: 1 addition & 0 deletions packages/themes/src/g90.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export const iconInverse = gray100;
export const iconOnColor = white;
export const iconOnColorDisabled = adjustAlpha(iconOnColor, 0.25);
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
export const iconInteractive = white;

// Support
export const supportError = red40;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Array [
"icon-on-color",
"icon-on-color-disabled",
"icon-disabled",
"icon-interactive",
]
`;

Expand Down Expand Up @@ -225,6 +226,7 @@ Array [
"icon-on-color",
"icon-on-color-disabled",
"icon-disabled",
"icon-interactive",
"support-error",
"support-success",
"support-warning",
Expand Down
4 changes: 4 additions & 0 deletions packages/themes/src/tokens/__tests__/metadata-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,10 @@ test('metadata', () => {
"name": "icon-disabled",
"type": "color",
},
Object {
"name": "icon-interactive",
"type": "color",
},
Object {
"name": "support-error",
"type": "color",
Expand Down
1 change: 1 addition & 0 deletions packages/themes/src/tokens/v11TokenGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ export const icon = TokenGroup.create({
state: 'disabled',
name: 'icon-disabled',
},
'icon-interactive',
],
});

Expand Down
1 change: 1 addition & 0 deletions packages/themes/src/white.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const iconInverse = white;
export const iconOnColor = white;
export const iconOnColorDisabled = gray50;
export const iconDisabled = adjustAlpha(iconPrimary, 0.25);
export const iconInteractive = blue60;

// Support
export const supportError = red60;
Expand Down

0 comments on commit b32cee5

Please sign in to comment.