scss id wont work #12553
-
When i want to apply id style with exemple:
It actually wont work does any configuration is needed ?! Example screen : https://image.noelshack.com/fichiers-md/2020/19/4/1588868666-capture-d-ecran-de-2020-05-07-12-24-07.png |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Could you give a little more context? Where are you applying that style (in a .module.scss file or in a .scss global file that you're important in a custom _app) and what does your component look like that's trying to use it? |
Beta Was this translation helpful? Give feedback.
-
Based on the screenshot you sent, you're not using the right syntax for The tldr; is that you have to declare |
Beta Was this translation helpful? Give feedback.
Based on the screenshot you sent, you're not using the right syntax for
id
from modules. You can see more at this issue in the css-modules lib.The tldr; is that you have to declare
:global(#textContent)
instead of what you have. Otherwise, the module will add a unique namespace suffix to the id and your DOM will not match it.