Enterprise: Flex Toolbar: Non-ajax submenus disappearing and check marks overlaying text

Created on 16 Oct 2019  路  7Comments  路  Source: infor-design/enterprise

Describe the bug
Checkmarks are overlaying text when there are no icon buttons in a flex toolbar. Since no icons are detected in toPopupMenu(), hasIcons is false on the flex toolbar's settings and the .has-icons class isn't set on the ul.

Also, when writing a test for this, I discovered that a non-ajax submenu isn't opening correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Copy test-checked-submenu-no-icons.zip into your codebase.
  2. Navigate to '/components/toolbar-flex/test-checked-submenu-no-icons.html'
  3. Click on the more menu in the toolbar.
  4. See the checkmark is overlaying the first item's text
  5. Hover over 'More Three'
  6. See both more menus disappear.

Expected behavior
There should be enough space for the checkmark, and the submenu should open correctly.

Version

  • ids-enterprise: v4.23.0-dev

Screenshots
CheckMarkAndSubmenuError

Platform

  • All
[5] landmark type

Most helpful comment

I think it's flex toolbar specific, rather that generic popupmenu.

All 7 comments

I think it's flex toolbar specific, rather that generic popupmenu.

@tmcconechy there's some popupmenu generation done by the Flex Toolbar here that isn't currently taking into account selectable submenus. Shouldn't be too bad to fix.

Do we need to pass in a setting or something for if the more menu is getting constructed via a ajax callback?

Switched this to a [5] because the lifecycle issue is a bit more complicated than we originally thought. It requires building a handful of tests, as well as potentially change the way the menu renders.

@janahintal i fixed the automation and moved back the wrongly moved issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

claudenbach picture claudenbach  路  39Comments

sanx72 picture sanx72  路  16Comments

jamie-norman picture jamie-norman  路  55Comments

jamie-norman picture jamie-norman  路  19Comments

InforChloeChen picture InforChloeChen  路  18Comments