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

Fixes: #1270 - (ClayCSS) Deprecated $clay-unset and don't use varia… #1317

Merged
merged 1 commit into from
Nov 22, 2018

Conversation

pat270
Copy link
Member

@pat270 pat270 commented Nov 19, 2018

…ble resets because it isn't in the Sass spec

Fixes: #1270 - (ClayCSS) Add missing semi colon in Sheet variable

Fixes: #1270 - (ClayCSS) Mixin clay-custom-grid-columns base Sass map is being overwritten in RubySass

…e variable resets because it isn't in the Sass spec

Fixes: liferay#1270 - (ClayCSS) Add missing semi colon in Sheet variable

Fixes: liferay#1270 - (ClayCSS) Mixin `clay-custom-grid-columns` base Sass map is being overwritten in Ruby/Dart Sass

Fixes: liferay#1270 - (ClayCSS) Dart Sass no longer supports extending compound selectors e.g. `.primary.focus` added placeholders `%btn-*-focus` and `%btn-outline-*-focus`
// variables in version 2 because it violates the Sass spec. If you
// are using libsass you can still unset variables with the syntax
// `$my-var: !default;`.
$clay-unset: clay-unset !default;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use @warn here so this shows to developers using it?

Copy link
Member Author

Choose a reason for hiding this comment

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

@jbalsas Adding @warn will spam the deprecation warning on every compile even if they're not using it. Maybe we can provide some documentation on clayui.com?

Copy link
Contributor

Choose a reason for hiding this comment

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

I take that we can't detect variable usage, just mixins, right?

// variables in version 2 because it violates the Sass spec. If you
// are using libsass you can still unset variables with the syntax
// `$my-var: !default;`.
$clay-unset: clay-unset !default;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use @warn here so this shows to developers using it?

@jbalsas
Copy link
Contributor

jbalsas commented Nov 22, 2018

Hey @pat270, I'm merging for now, we'll need to add a warning whenever we upgrade and remove it.

For that... maybe we could start using https://github.com/salesforce-ux/sass-deprecate, that way, when we try to upgrade to 3.0.0 we'll automatically have everything we need to remove documented.

Could you take a look to see if this would bring us some benefits?

Thanks!

@jbalsas jbalsas merged commit ff29726 into liferay:develop Nov 22, 2018
@pat270 pat270 deleted the clay--1270 branch March 19, 2019 16:35
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.

2 participants