Skip to content

Commit

Permalink
fix(ffe-messages): add mask image css variable on icon inside ffe-mes…
Browse files Browse the repository at this point in the history
…sages
  • Loading branch information
hagenek committed Jan 27, 2025
1 parent 92f6e91 commit d952cbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion buildtool/config/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
},
],
'media-feature-name-no-vendor-prefix': true,
'property-no-vendor-prefix': true,
'property-no-vendor-prefix': null,
'selector-max-specificity': [
'0,3,0',
{
Expand Down
16 changes: 8 additions & 8 deletions packages/ffe-messages/less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,26 @@
color: var(--text-color);
}


&__background {
background: var(--background);
border-radius: var(--ffe-g-border-radius-lg);
border: var(--ffe-g-border-width) solid var(--border-color);
}

&--context {
--icon-size: var(--ffe-v-icons-size-lg);
--icon-padding: var(--ffe-spacing-xs);
--icon-size: var(--ffe-v-icons-size-lg);
--icon-padding: var(--ffe-spacing-xs);

.ffe-message__heading {
font-size: var(--ffe-fontsize-h6);
margin: 0 0 var(--ffe-spacing-2xs);
}
.ffe-message__heading {
font-size: var(--ffe-fontsize-h6);
margin: 0 0 var(--ffe-spacing-2xs);
}

&.ffe-message--context-compact {
--icon-size: var(--ffe-v-icons-size-md);
--icon-padding: var(--ffe-spacing-2xs);
}
}
}
}

.ffe-message__icon-container {
Expand Down Expand Up @@ -200,6 +199,7 @@
mask-position: center;
background-color: currentcolor;
mask-image: var(--mask-image);
-webkit-mask-image: var(--mask-image);
height: var(--icon-size);
aspect-ratio: 1;
mask-size: contain;
Expand Down

0 comments on commit d952cbb

Please sign in to comment.