To ensure specificity in CSS Modules without using deep selectors, one could use the :global ______.

  • :deep
  • :not-global
  • :global-selector
  • :module
In CSS Modules, the ":global-selector" can be used to ensure specificity without resorting to deep selectors. ":global-selector" allows you to define styles that are not scoped to a specific module, making them accessible globally. The other options are not valid constructs in CSS Modules.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *