Hello,
I modify the WebStyle for a WebPopupMenu to give it a specific look.
How to style the menu, that opens?
I don’t see a MenuStyle property or so.
Hello,
I modify the WebStyle for a WebPopupMenu to give it a specific look.
How to style the menu, that opens?
I don’t see a MenuStyle property or so.
I don’t think there is an option (yet) in Xojo for that.
You can ask for a Feature for that.
You may need to use JS/CSS to change it in the mean time.
(I hope I’m wrong)
Do you still need help with this?
What do you want to do? Smaller font?
Yes, smaller font. So it matches more the font that the client prefers.
You may can add some CSS-Styles to the HTML-Header of the App. I’m not sure, if using the selector-class “dropdown-item” has any other side effects.
<style>
.dropdown-item {
font-size: 10px;
}
</style>
This works:
<style>
.dropdown-menu {
--bs-dropdown-font-size: 0.8rem;
}
</style>
in App HTML Header. The default is 1 rem.
You may want to change the padding y too.