daisyui icon indicating copy to clipboard operation
daisyui copied to clipboard

bug: lg:drawer-open not working on laptop/desktop

Open oauter opened this issue 3 years ago โ€ข 9 comments

What version of daisyUI are you using?

v3.1.0

Describe your issue

The responsive drawer HTML code does not work, when I cut and past it from https://daisyui.com/components/drawer/#responsive into a new/empty html file. Specifically the lg:drawer-open class does not display the navbar on a large screen like it should, if I just type in drawer-open and leave off the lg modifier it displays as it should on a large screen.

What browsers are you seeing the problem on?

Chrome, Edge

Reproduction URL (optional)

https://stackblitz.com/edit/web-platform-ufspcw?file=index.html

oauter avatar Jun 14 '23 18:06 oauter

Me too...

bosichong avatar Jun 15 '23 06:06 bosichong

I can confirm this issue. For me leaving off the lg modifier does not help. The drawer is still invisible on all screen sizes - only working on mobile by clicking on the label which toggles the drawer.

Still present in v3.1.1 - Returned to v2.x for now using the deprecated drawer-mobile class.

nilskretschmer avatar Jun 17 '23 10:06 nilskretschmer

This was a issue on CDN file. Now fixed in version 3.1.2

saadeghi avatar Jun 20 '23 22:06 saadeghi

lg:drawer-open stays invisible in Safari desktop for version 4.12.10

"daisyui": "^4.12.10",

redrockzee avatar Sep 17 '24 04:09 redrockzee

lg:drawer-open stays collapsed in Firefox 145.0 (aarch64) desktop for DaisyUI version "daisyui": "^5.5.5"

jamesclavel avatar Nov 19 '25 02:11 jamesclavel

You mean in this example: https://play.tailwindcss.com/4AybsPcml1 the drawer thin bar on the left is not visible on large screens, and this happens specifically only on firefox (aarch64)? Because in firefox (x86) it works as expected

pdanpdan avatar Nov 19 '25 07:11 pdanpdan

It doesnt work in Codepen (Firefox 140.7.0esr) (Example) Works in Tailwind play.

Same code basically, why is that ?

Oberonc avatar May 09 '26 20:05 Oberonc

Check docs https://daisyui.com/docs/cdn/

daisyUI variant class names like is-drawer-open and is-drawer-close are not included in the CDN files because adding them for all class names will result in a very large file size

pdanpdan avatar May 09 '26 20:05 pdanpdan

Check docs https://daisyui.com/docs/cdn/

daisyUI variant class names like is-drawer-open and is-drawer-close are not included in the CDN files because adding them for all class names will result in a very large file size

Didnt notice that. Thanks for the swift reply

Oberonc avatar May 09 '26 20:05 Oberonc