flowbite-react icon indicating copy to clipboard operation
flowbite-react copied to clipboard

Button doesn't fit to its parent width

Open rluders opened this issue 3 years ago • 0 comments

Describe the bug

Button uses w-fit, that applies width: fit-content which is the available space up to the max of the content, not the available space of the parent. w-full would do that. So I think this is a bug because atm we have no way of resizing a button beyond with width of its content.

To Reproduce Steps to reproduce the behavior:

  1. Create a page with Button component
  2. Wrap it with a div and fit to this div a width

Expected behavior

The button must always respect its parent width.

Screenshots n/a

System information:

n/a

Project information:

  • Tailwind: 3.0.0
  • Flowbite: 1.4.7
  • Flowbite React: 0.1.8
  • Type: CRA

Additional context n/a

rluders avatar Aug 19 '22 12:08 rluders