Skip to content

Commit

Permalink
feat(utility): added image disabled utility class
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtBlue committed Jul 1, 2024
1 parent 28f5ae1 commit 5237220
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/icon/icon.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/icon/icon.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/phone-input/phone-input.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/phone-input/phone-input.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tokens/evo-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,5 @@
var(--color-ai-solid-green-subtle) 66%,
var(--color-ai-solid-green-subtle) 100%
);
--color-icon-disabled-filter: grayscale(1) opacity(0.25);
--color-media-disabled-filter: grayscale(1) opacity(0.25);
}
4 changes: 4 additions & 0 deletions dist/utility/utility.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/utility/utility.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions docs/_includes/utility.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ <h2><span class="secondary-text">@ebay/skin/</span>utility</h2>
<td>.image-scale</td>
<td>Image will scale up and down</td>
</tr>
<tr>
<td>.image-disabled</td>
<td>Image will appear disabled.</td>
</tr>
<tr>
<td>.text-truncate</td>
<td>Truncate single-line text</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/static/skin-default.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/static/skin-full.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/static/skin-headless.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/storybook/main.711a6b3d.iframe.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/sass/icon/icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ svg {
}

&.icon--disabled {
filter: var(--color-icon-disabled-filter);
filter: var(--color-media-disabled-filter);
}
&.icon--attention-filled {
@include color-token(color-foreground-attention);
Expand Down
2 changes: 1 addition & 1 deletion src/sass/phone-input/phone-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

.phone-input--disabled span.fflag,
.phone-input--disabled svg.flag {
filter: var(--color-icon-disabled-filter);
filter: var(--color-media-disabled-filter);
}

.phone-input--disabled .textbox {
Expand Down
4 changes: 4 additions & 0 deletions src/sass/utility/utility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
@include image-treatment(16px);
}

.image-disabled {
filter: var(--color-media-disabled-filter);
}

.text-truncate {
overflow: hidden;
text-overflow: ellipsis;
Expand Down
2 changes: 1 addition & 1 deletion src/tokens/evo-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,5 @@
var(--color-ai-solid-green-subtle) 66%,
var(--color-ai-solid-green-subtle) 100%
);
--color-icon-disabled-filter: grayscale(1) opacity(0.25);
--color-media-disabled-filter: grayscale(1) opacity(0.25);
}

0 comments on commit 5237220

Please sign in to comment.