Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

_is-color validator fails on CSS Custom Properties #1103

Closed
GoOz opened this issue Sep 25, 2020 · 1 comment
Closed

_is-color validator fails on CSS Custom Properties #1103

GoOz opened this issue Sep 25, 2020 · 1 comment

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
@enatario
Copy link
Contributor

Closing this as we're archiving the project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants