-
Notifications
You must be signed in to change notification settings - Fork 35
Description
I verified there's no existing issue for this bug.
- There are no existing issues
Current behavior
I have an issue where we'd love to use the native CSS variable breakpoints in our project (like --breakpoint-extra-large). However, CSS does not allow CSS vars to be used in media queries.
Anyway, I found we have LESS variables that are similar in https://github.com/eBay/evo-web/blob/main/packages/skin/dist/variables/variables.less
But the values are different than the CSS breakpoint vars (the names/values do not align with Playbook).
For reference, here's the Evo Web Playbook:
https://playbook.ebay.com/design-system/tokens/breakpoint
Note: it seems that LESS variables do not "convert" CSS variables to their assigned values, so just setting them like @breakpoint-large: var(--breakpoint-large) will work.
Expected behavior
No response
Package and version
No response
Device/OS/Browser info
No response
Steps to reproduce
1.
2.
3.
...Relevant code block
No response
Additional context
No response
Metadata
Metadata
Labels
Type
Projects
Status