kirill-grouchnikov/radiance

[Component] Revisit CommandButtonPresentationModel.isMenu

kirill-grouchnikov opened this issue · 0 comments

It's currently being used as a "differentiator" for two separate things, both of which should be configurable with finer-grained properties:

  1. Popups of command buttons in menus are activated on rollover instead of on press. This is to enable an easier navigation of cascading / multi-level popup menus. But it's also a useful feature to have for "non-menu" buttons - along the same lines of using setFireActionTrigger(FireActionTrigger.ON_ROLLOVER)
  2. Highlighting selected buttons. Selected buttons in menus show the highlight around the icon, while selected buttons elsewhere show the highlight around the whole content.

After these two new properties have been added, the existing isMenu will be removed.

Also rename FireActionTrigger to ActionFireTrigger