Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(@clayui/css): Mixins clay-css should output any CSS Custom Properties passed into it #4265

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

pat270
Copy link
Member

@pat270 pat270 commented Sep 10, 2021

fixes #4252

This allows passing CSS Custom Properties to any Sass map that uses the clay-css mixin.

$btn-primary: (
    --btn-primary-background-color: blue,
);

.btn-primary {
    @include clay-css($btn-primary);
}

should output:

.btn-primary {
    --btn-primary-background-color: blue;
}

… A function that determines whether the string `$str1` begins with the characters of the specified string `$str2`.
Copy link
Member

@matuzalemsteles matuzalemsteles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! That's cool, thanks @pat270

@matuzalemsteles matuzalemsteles merged commit f6a1f7e into liferay:master Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@clayui/css Allow passing in CSS Custom Properties to clay-css mixin
2 participants