bug: DaisyUI 5: Even though the container element has justify-center
, setting width to an <input> element doesn't shrink the <input> element
#3328
Labels
What version of daisyUI are you using?
5.0.0-alpha.51
Which browsers are you seeing the problem on?
All browsers
Reproduction URL
https://play.tailwindcss.com/N2jb6X1w9J
Describe your issue
DaisyUI 4: https://play.tailwindcss.com/O5rljzE52Q
Docs: https://daisyui.com/components/input/#text-input-with-icon-inside
DaisyUI 5: https://play.tailwindcss.com/N2jb6X1w9J
Docs: https://v5.daisyui.com/components/input/#text-input-with-text-label-inside
Looks like the
input
class is setting the element's width to 100%, overriding myw-8
classThe text was updated successfully, but these errors were encountered: