v3.0.10 breaks specificity when used with Vue scoped style
See original GitHub issueWhat version of Tailwind CSS are you using?
For example: v3.0.10
What build tool (or framework if it abstracts the build tool) are you using?
postcss-cli 8.4.5, “@nuxt/postcss8”: “1.1.3”, “nuxt-start”: “2.15.8”,
What version of Node.js are you using?
v14.16.1
What browser are you using?
For example: Chrome
What operating system are you using?
For example: macOS
Describe your issue
After upgrading from v2 to v3 our shadows no longer work locally (so I know it’s not a production purge css issue).
I think the utility specific styles are being overridden by global reset ones?
<div
class="flex flex-col flex-auto rounded"
:class="{ 'bg-white shadow': !transparent }"
>
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Scoped CSS - Vue Loader
Scoped CSS. When a <style> tag has the scoped attribute, its CSS will apply to elements of the current component only. This is...
Read more >Why the scoped style in vue is useless? The parent element ...
With scoped, the parent component's styles will not leak into child components. However, a child component's root node will be affected by both...
Read more >Vue.js - Scoped Styles vs CSS Modules - Netguru
Scoped CSS vs CSS Modules in Vue.js application. What are the pros and cons of using either of those? Which one is a...
Read more >Vue CSS & vue style scoped - YouTube
In this video you will learn about Vue CSS. Vue gives us a nice possibility to avoid writing styles globally out of the...
Read more >Making Use of Scoped Styles in Vue - Eldarion
There are a lot of way to handling styling your Vue project. Making use of single-file components with scoped style has made life...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey all, thanks for reporting this 🙏
We’re working on a proper fix, but in the meantime we’ve rolled back the change the caused this issue and have released a
v3.0.11
version.btw it’s working for me when I’m using tailwindcss v.3.0.9