Semantic-ui: [Menu] - Dropdown items behaving inconsistently in text menus

Created on 4 Sep 2017  路  3Comments  路  Source: Semantic-Org/Semantic-UI

Steps to Reproduce
This one is a bit odd so I have created a demo: https://jsfiddle.net/g0tn16j9/2/

Expected
Dropdown items should be full width (stretch across their container, with left alignment)
screen shot 2017-09-04 at 6 24 27 pm

Result
Dropdown items are not full width when their Parent trigger is short text within a .ui.text.menu
screen shot 2017-09-04 at 6 20 54 pm

Testcase
https://jsfiddle.net/g0tn16j9/2/

Confirmed Bug stale

Most helpful comment

Hi @kiwicopple, that鈥檚 when the transition component tries to determine the final display type of a menu, and settles on Flexbox, because there鈥檚 a CSS inheritance issue that we need to fix. I鈥檒l propose a change as soon as I can, in the meantime, I don鈥檛 think the transition鈥檚 displayType property is exposed through the dropdown component, but you can use data-display to force it:

<div class="menu" data-display="block">

Or you could set it globally for all transitions, but you probably don鈥檛 want to do that:

$.fn.transition.settings.displayType = 'block'

All 3 comments

Hi @kiwicopple, that鈥檚 when the transition component tries to determine the final display type of a menu, and settles on Flexbox, because there鈥檚 a CSS inheritance issue that we need to fix. I鈥檒l propose a change as soon as I can, in the meantime, I don鈥檛 think the transition鈥檚 displayType property is exposed through the dropdown component, but you can use data-display to force it:

<div class="menu" data-display="block">

Or you could set it globally for all transitions, but you probably don鈥檛 want to do that:

$.fn.transition.settings.displayType = 'block'

Thanks for the quick response @Banandrew . The data-display="block" attribute is working perfectly

There has been no activity in this thread for 90 days. While we care about every issue and we鈥檇 love to see this fixed, the core team鈥檚 time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one.

However, PRs for this issue will of course be accepted and welcome!

If there is no more activity in the next 90 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

playgithub picture playgithub  路  3Comments

davialexandre picture davialexandre  路  3Comments

deneuxa picture deneuxa  路  3Comments

mixerp picture mixerp  路  3Comments

ghost picture ghost  路  3Comments