fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Investigate using ContextualMenu for the menus in the dropdown and comboBox components

Open jspurlin opened this issue 8 years ago • 4 comments

Bug Report

  • Package version(s): 6.9.0

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? (Yes, No)

Requested priority: Low

Products/sites affected: (if applicable)

Describe the issue:

Currently when menu behavior (like keyboarding and focus) is updated ContextualMenu, Dropdown, and ComboBox all must be updated to be consistent... Ideally these should use the same underlying component so that the change only needs to be made in one place

jspurlin avatar Jun 14 '18 17:06 jspurlin

I am going to assign to you, but we can consider closing this if it's covered by other things. Maybe there is some code to share here.

dzearing avatar Nov 12 '18 15:11 dzearing

In the attempt to merge Dropdown with ComboBox, it would make sense to extract the ITEM from the list of options to a separate subcomponent which then later can be used when in ContextualMenu when it's up for a major refactor. During the fluent work done on all 3 components I had to style them separately with 3 different approaches. In some of them to actually style them I had to either add subComponentStyles hook or target a global className. When talked to designers, apparently these items in all 3 components should share the same styles in all states (rest/hover/focus/active), so having them as a sharable component with styles and logic in one place would help to exclude inconsistencies and reduce the amount o effort to keep them all in sync.

Vitalius1 avatar Nov 14 '18 05:11 Vitalius1

This can be part of the dropdown/combobox refactor found #6030

joschect avatar May 16 '19 21:05 joschect

We’re currently focusing on improvements to performance and coherence, as you can see in our pinned issue on the repo detailing our v8 plans. So while we don’t plan to address this right now, we will take it into consideration when we schedule future work for DropDown.

Thank you for reaching out to us.

paulgildea avatar Jun 03 '20 17:06 paulgildea