fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Allow some CommandBar Contextual Menu Items to not be rendered on the overflow menu

Open cmenekse opened this issue 8 years ago • 3 comments

Currently in the experiments when the command bar gets resized all menu items are sent to the overflow menu when they are not displayed. like in the following commandbarcurrentbehaviour commandbarresized1

although it is probably a very rare use case, there might be a need to not put certain items to the overflow menu. Then it would look like commandbarresized2

For the screenshot purposes I added a property renderInOverflow to the ICommandBarItemProps and filtered items to render in OverflowMenu in the render of the command Bar. Since I am not familiar with the code base I am not sure that is the way to go , also I am not sure that this is a needed feature but just wanted to mention it as a possible suggestion. Thank you

cmenekse avatar Apr 09 '18 16:04 cmenekse

Hi @cmenekse - how important is this functionality for you? What is the scenario that's blocked? More specifically, if you are okay showing an item given enough space, why would you want to hide it in the overflow scenario? This doesn't feel very consistent with our overall design, and as such, we are inclined to not fix this...

aditima avatar Apr 09 '18 18:04 aditima

Please reactivate with more scenario details if you really need this...

aditima avatar Apr 09 '18 18:04 aditima

Hi @aditima I do agree with you, the only case I can think this might be useful is like the one's in the screenshots - a dummy menu item "|" that acts as a vertical bar - . Is there a recommended way to implement the similar functionality without making "|" as a menu item? Besides that I too cannot think any other scenario this can be useful.

cmenekse avatar Apr 09 '18 18:04 cmenekse