mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
25 stars 27 forks source link

Internal issue 2839 - Hide Labels inside of IC Select Control #2319

Open ticket-sync[bot] opened 2 months ago

ticket-sync[bot] commented 2 months ago

Summary 

Allow user to hide labels of select options inside of the IC Select control

💬 Description 

When a user adds a select option to their control they should have the option to hide the label. Ideally it would work the same as with the control as a whole, a hideLabel = true flag.

💰 User value 

The value of this change is that you can fully leverage the custom components functionality of the control. If for example you have a custom component that uses the status tag control at the moment you need the label and the status tag in order to display to the user which option is selected. With a hidden label you could just show the status tag and have the label displayed in the search box. Additionally, if you wanted the label that is shown in the search bar to be different to your custom component this would enable it.

MI6-255 commented 2 months ago

See internal comments