scss v-bind variables not working inside q-dialog SFC #12788
Labels
area/components
area/style
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-webpack
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
Hi, i'm trying to use v-bind css variables for SFC.
While this feature works on normal components it won't work while using q-dialogs.
What did you expect to happen?
The dialog should have a red background.
Reproduction URL
https://codesandbox.io/s/laughing-agnesi-ctskso?file=/src/components/MyDialog.vue
How to reproduce?
Here it is the same component using
<script setup>
feature:Then change it's model to
true
and you will see that the bakground color isn't set.Then if you try to remove the
q-dialog
tags and v-model related logic and import it as plain component the background is actually red.Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Components (quasar), Style & Identity (quasar)
Platforms/Browsers
Chrome
Quasar info output
No response
Relevant log output
No response
Additional context
If you go to the developer console inside the browser you will see this:
And hovering it this message will show up:
--ba9b6fa2-tmp is not defined
WORK AROUND:
Abstract that reactive portion of code that needs to use the css variable into a different component and import it.
Not the best but works for now. (see linked repo)
The text was updated successfully, but these errors were encountered: