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

Sass class selectors use inline-color plugin #2992

Closed
benAnima opened this issue Jul 11, 2021 · 2 comments · Fixed by #2994
Closed

Sass class selectors use inline-color plugin #2992

benAnima opened this issue Jul 11, 2021 · 2 comments · Fixed by #2994

Comments

@benAnima
Copy link

Information

  • Language: Sass
  • Plugins: inline-color

Description
When prism renders Sass using inline-color plugin, if a class selector has a color name, the inline color preview is displayed.

Code snippet
Test page - though it doesn't display usage of plugins.

image

.lucidagrande-normal-
black-14px 
  color: var(--black)
  font-family: var(--font-family-lucidagrande)
  font-size: var(--font-size-m)

Expected behavior
Class names / any other selector should not use inline-color plugin.

@RunDevelopment
Copy link
Member

The Inline color plugin simply uses the tokenization provided by Sass. This is a bug with Sass. I'll fix it.

@benAnima
Copy link
Author

Thanks for your quick response and help!

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

Successfully merging a pull request may close this issue.

2 participants