Can Dropdown Menu Items size down with the dropdown trigger button ? #1175
Unanswered
dev-idkwhoami
asked this question in
Feature Requests
Replies: 1 comment
-
@dev-idkwhoami I think you were on the right track with setting the height class, but you will probably also need to set text size to like But yeah adding a size attribute would make it nicer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there not sure if this really is a feature request or if i can achieve this some other way, but here we go.
Im using a dropdown, but the dropdown button itself is size
xs
but when you open the dropdown it's items are "normal" or rather the base size.Now im not sure if it is possible to resize those items without modifying the
menu.item
component itself.I tried forcing the item to be smaller but then the icon & text simply overlap the items limits.
Here some examples of what i mean:
This is the first dropdown example from the docs:
Now if i change the dropdown trigger button size to
sm
or evenxs
the menu & menu items look completely out of place because they are way to big compared to the button itself.Here is how it looks when i force the item to be a certain height:
I tried using h-6 to since that is xs button height but it also doesn't look right it's better but thats beside the point.
IMO the icon & the text of dropdown items, submenus, etc should be sized in relation to dropdown trigger.
I can see how that could be rather difficult to implement so i would argue that simply integrating the
size
property for components likemenu.item
,flux:menu.submenu
and so on would already go a long way.Now i wrote in the beginning im not sure whether this is a feature request or not so here comes the part where i embarrass myself.
If there is a way i missed or somebody knows how to achieve what im trying to do WITHOUT modifying the components please let me know ^^
Beta Was this translation helpful? Give feedback.
All reactions