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

_is-color validator fails on CSS Custom Properties #1103

Open
GoOz opened this issue Sep 25, 2020 · 0 comments
Open

_is-color validator fails on CSS Custom Properties #1103

GoOz opened this issue Sep 25, 2020 · 0 comments

Comments

@GoOz
Copy link

GoOz commented Sep 25, 2020

Description

I would like to use the triangle() mixin with a CSS Custom Property as the color parameter but it obviously fails because the _is-color validator doesn't recognize the custom property as a color, which seems legit, but I think it should accept in some way CSS Custom Properties as they are more and more used, specially within a themable context.

Steps to Reproduce

.element {
  @include triangle($arrow-direction, $arrow-width, $arrow-height, var(--my-triangle-color));
}
  • Bourbon version: 7
  • Platform: any
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

No branches or pull requests

1 participant