liferay / clay

A web implementation of the Lexicon Experience Language
http://clayui.com
Other
208 stars 483 forks source link

@clayui/css Create clay-sticker-variant mixin for customizing sticker variants #4342

Closed pat270 closed 3 years ago

pat270 commented 3 years ago

Update sticker component to follow new Sass map pattern, sticker variants can be simplified from:

$sticker-primary-bg: $primary !default;
$sticker-primary-border-color: null !default;
$sticker-primary-color: color-yiq($sticker-primary-bg) !default;

to

$sticker-primary: () !default;
$sticker-primary: map-deep-merge((
    background-color: $primary,
    color: color-yiq($primary),
), $sticker-primary);
github-actions[bot] commented 3 years ago

This issue has been merged and will be released in DXP at https://issues.liferay.com/browse/LPS-139224