-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
🐛 [BUG]: Tailwind @apply dark:<xxx> doesn't work after updating #869
Comments
Can you create a sandbox reproduction for this? Off the cuff I can't tell you what's going wrong 😄 |
sorry I just created a repro but without the template |
No worries, any reproduction would be helpful, the template is just to make it easier to get started ^^ |
here is the repro https://github.com/remiconnesson/minimal-repro-vueflow-tw-apply |
Doesn't work for me in .vue-flow__node {
@apply cursor-pointer bg-green-100 dark:text-red-100 dark:bg-red-700;
} |
Tbf this doesn't look like a Vue Flow issue but somewhat of an issue with dark mode styles not being properly applied to elements selected with For example this isn't working either. <template>
<div class="barbaz">
<Foobar />
</div>
</template>
<style scoped>
.barbaz :deep(.foobar) {
@apply text-xl text-red-500 dark:text-white;
} // Foobar.vue
<template>
<div class="foobar">Foo</div>
</template> But this works completely fine .barbaz .foobar {
@apply text-xl text-red-500 dark:text-white;
} So the issue here doesn't seem like it's related to Vue Flow at all. |
Oh thank you very much I will update my code without scoping in the meantime and I will try to isolate which deps is causing this and open an issue in the correct repo Sorry for the mistake |
FYI the issue seems to come from After experimenting with different versions of the deps, I tried to put as you shown vueflow is not an issue here demo bug with vueflow: https://github.com/remiconnesson/minimal-repro-vueflow-tw-apply |
Good to know and thanks for informing me 😄 |
:) yes you're right, I'm opening an issue here with tailwindcss tailwindlabs/tailwindcss#11024 |
Is there an existing issue for this?
Current Behavior
I'm using a bunch of tailwind
@apply
to stylize the graph in various scenariofor example:
and it was working fine with the following deps
but now with versions
the dark styles don't apply.
I tried several version of tailwind with both vue-flow v1.11 and vue-flow and the problem is not occuring with vue-flow 1.11 but is with the latest version
I have no idea what could be causing this
The styles applied without the dark modifier does work so tailwind is able to reach, it is just the dark version that are not working.
Expected Behavior
dark styles applied with @apply are working again
Steps To Reproduce
(I'm going to try to build a minimal repro later on)
Relevant log output
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: