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

Allow functions & custom props in rgba params #1127

Merged
merged 2 commits into from
Sep 2, 2017

Conversation

DanPurdy
Copy link
Member

@DanPurdy DanPurdy commented Sep 2, 2017

Functions being passed as params of rgba were flaggins as literals. This change allows functions to be passed properly as params of rgba.

Fixes #853

There's a lot of other things mentioned in that ticket but I believe all the others to be either misconfigured rules or invalid configs. Happy to keep the issue open if we don't agree though.

<DCO 1.1 Signed-off-by: Dan Purdy dan@dpurdy.me>

@coveralls
Copy link

coveralls commented Sep 2, 2017

Coverage Status

Coverage remained the same at 97.573% when pulling 1eb2b5b on feature_fix-functions-rgba into 658f4c4 on v1-dev.

@coveralls
Copy link

coveralls commented Sep 2, 2017

Coverage Status

Coverage remained the same at 97.573% when pulling 8d0ae41 on feature_fix-functions-rgba into 658f4c4 on v1-dev.

funcType === 'rgba' &&
valElem.content[1].content[0].type !== 'variable' &&
funcType === 'rgba' && (
valElem.content[1].content[0].type !== 'variable' &&
Copy link
Member

Choose a reason for hiding this comment

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

Suggest we use !valElem.content[1].content[0].is('variable') etc

@DanPurdy DanPurdy merged commit a214c4f into v1-dev Sep 2, 2017
@DanPurdy DanPurdy deleted the feature_fix-functions-rgba branch September 2, 2017 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants