-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button height different between gradient and color styles #315
Comments
...also if a button is inside a FwbTooltip element's #trigger template, it might have a different height than if it is placed outside... |
Hello, @mrckzgl |
@mrckzgl |
@ogzcode sure, have a look here: https://stackblitz.com/edit/vitejs-vite-rpth2s?file=src%2FApp.vue&terminal=dev The point, I showed the documentation page is that whatever css / html is around those buttons, they should all have the same height. So I assume the same problem, which is causing the buttons to have different size if they are surrounded by a FwbTooltip is also happening in the doc page. EDIT: Also as it is happening on the doc page, I thought it was independent from the tooltip, and I also thought I was able to reproduce it in our code without the tooltip, but I don't know how anymore. |
@mrckzgl In the stackblitz example you gave, I changed the color of the normal buttons to If you are going to use the light and alternative buttons, you can give the other buttons a border style as follows, so they will be the same size.
I hope I was able to answer your question : ). |
I noticed that this issue is actually inherited from Flowbite itself (compare Flowbite Buttons documentation), however I agree that it is not as nice to work with if I as a developer have to consider this quirky behavior. One alternative might be to add a |
Hey, I just figured that the buttons of type color have a different height, than those of type gradient. This hinderes me to use them side by side. This is also visible in the documenation (https://flowbite-vue.com/components/button). Color style:
has height 38px. But gradient style:
has height 36px.
cheers
The text was updated successfully, but these errors were encountered: