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

Add deprecation warnings for hex alpha colors #367

Merged
merged 1 commit into from
Jun 22, 2018
Merged

Add deprecation warnings for hex alpha colors #367

merged 1 commit into from
Jun 22, 2018

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Jun 20, 2018

Also support unambiguous hex alpha colors.

Closes #360
See sass/sass#2179
See sass/sass-spec#1262

Copy link

@jmesserly jmesserly left a comment

Choose a reason for hiding this comment

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

lgtm

red = (red << 4) + green;
green = (blue << 4) + _hexDigit();
blue = (_hexDigit() << 4) + _hexDigit();
var digit1 = _hexDigit();

Choose a reason for hiding this comment

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

Like this change to split the variables into digit1/2/3 initially and then red/green/blue once we figure out what a digit means. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, when I started to re-read this function I had a big confusion moment because of the old naming.

Also support unambiguous hex alpha colors.

Closes #360
See sass/sass#2179
@nex3 nex3 merged commit 023bf91 into master Jun 22, 2018
@nex3 nex3 deleted the alpha-hex branch June 22, 2018 00:47
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.

None yet

2 participants