drawer backdrop style
-
How to set drawer’s backdrop bgcolor?
-
@matroskin said in drawer backdrop style:
How to set drawer’s backdrop bgcolor?
use
content-class
orcontent-style
props ie.content-class="bg-red-1"
-
That’s the drawer bg color, where the items there are. I need to set color of behind the drawer
-
dunno what tou mean by backdrop but you can see that props here setting the bg of the drawer https://quasar.dev/layout/drawer#Basic pls check the docs, examples, api cards etc.
-
<div class="fullscreen q-drawer__backdrop" ... >
I mean
it hasbackground-color: rgba(0, 0, 0, 0.4);
property by default
this color: https://prnt.sc/ott0it
-
Its just css, you can override it.
-
I cannot use css in this case
.q-drawer__backdrop
has no different attributes or classes when it is active/inactive
When it is active - framework applybackground-color: rgba(0, 0, 0, 0.4);
dinamically… -
@matroskin yes you can, i’m no expert in css but just googling for a bit got me a solution https://codepen.io/metalsadman/pen/LYPZJXm. no idea why you want to change it though, the current backdrop is pretty standard afaik.
-
thanks, I’ll use your variant )