question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v3.0.10 breaks specificity when used with Vue scoped style

See original GitHub issue

What 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?

image

<div
    class="flex flex-col flex-auto rounded"
    :class="{ 'bg-white shadow': !transparent }"
  >

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
reininkcommented, Jan 5, 2022

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.

1reaction
ednar28commented, Jan 5, 2022

btw it’s working for me when I’m using tailwindcss v.3.0.9

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found