-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sectioned Select #791
Comments
You can actually include elements other than |
Oh, interesting... yes, I think it would, especially if we can stylize them a bit. Thanks for letting me know that's already possible! |
I don't see any stories or tests describing that use case. Is it tested (maybe I'm missing it)? Do we know how things like tab order and keyboard interactions, etc behave? What kind of content are we supporting, just decorative or interactive (can you dump a textbox, or a nimble-button in there)? If we say it's supported we need testing and user guidance of what is supported. In addition we need documentation and examples in storybook. Generally speaking we do not support placing arbitrary content in slots. Only certain use-cases are supported and we should add tests if we want to say we support additional use cases. |
okay, sounds good. Thanks for the input! I guess the right thing to do for now is to click this re-open button and when there's time to prioritize some research and testing we can evaluate if inserting html elements meets our needs. |
One other workaround available today would be to append additional information to each item's text. e.g. "Notebook 1 (Default Workspace)" |
This request came up again in this SLE PR. It was the same use case: notebooks in different workspaces not being easily distinguished. |
Here's another SLE PR implementing the approach described above of adding |
@NIbokeefe in this SLE PR we're adding section headers to separate groups of combobox items. Do you have any visual design feedback about the styling of the headers? Personally I think the padding looks a bit cramped but I defer to your recommendations. |
I have a design for headers/group-labels for menus. In this design you've shown here it looks like we are using the controlLabel_1 token as the menu header. Instead if you can use the GroupLabel_1 token documented in both XD and Figma. It's an 11px Source Sans Pro Semi-bold font. The color token is Black91 @ 100% Opacity. You should be able to extract the correct spacing from either of those spec documents. Please let me know if you run into any issues. https://www.figma.com/file/PO9mFOu5BCl8aJvFchEeuN/Nimble_Components?type=design&node-id=1295%3A93863&t=JljnGeOi5lXwzyQf-1 https://xd.adobe.com/view/33ffad4a-eb2c-4241-b8c5-ebfff1faf6f6-66ac/ |
@NIbokeefe would we expect to use the horizontal line between each of the headed groups like the menu? Notice that the screenshot of the select currently doesn't have those. |
Great questions Milan, thank you! Horizontal line: My instinct is to keep the lines by default for the sake of simplifying the way we handle our patterns. If it's important to separate items by group it's ideal to visually reinforce it. This horizontal line brake concept derives from our general menu and serves multiple purposes. I always try to back a concept by 2-3 visual cues to account for accessibility and unknowns. I'll point out the added benefit to the line brake when regarding potential modification to the typography of the header. All caps: I don't have the context to this specific situation to say one way or another about the all caps. By default, we should us all caps to drive consistency. If the headers are user inputs or the case styling is important; this is for sure a concern and we should consider deviating from the all caps. The header visual design is supported in multiple ways: Headers are at the top of grouped items, in semi bold font and are divided by the horizontal line brake. We're not entirely relying on all caps to determine what's a header, so if we need to make that change it should not be a huge concern. However, I can't guide whether that's necessary without learning more about the functionality and use case. |
A related issue that came up in an SLE PR is for the following scenario:
This goes against the design of the combobox as-is which is modelled as a text input field that should not have knowledge of option selected but instead of text selected. Likely the desired behavior is to use a select control instead with the UX of being able to type ahead to filter options which can model a selected option correctly. |
Early prototype for API demonstration (and Storybook]). This prototype was focused on the Some observations made while demoing the prototype (noting its use in combination with filtering):
|
Interaction Design Questions
We plan to have the dev team propose answers to these questions and run them by IxD. |
# Pull Request ## 🤨 Rationale - #791
# Pull Request ## 🤨 Rationale - #791 This PR only introduces groups to the `Select`. Providing this feature for the `Combobox` will be handled separately.
# Pull Request ## 🤨 Rationale - #791 ## 👩💻 Implementation Standard integration implementations for Angular/Blazor. ## 🧪 Testing Standard unit tests for Angular/Blazor. Updated both example apps. ## ✅ Checklist <!--- Review the list and put an x in the boxes that apply or ~~strike through~~ around items that don't (along with an explanation). --> - [ ] I have updated the project documentation to reflect my changes or determined no changes are needed. --------- Co-authored-by: Milan Raj <rajsite@users.noreply.github.com>
The functionality is now part of the Nimble select. We'll use a separate AzDO feature to track integration into SLE. |
😯 Problem to Solve
I don't see anything tagged as 'client-request' or 'enhancement' that matches this, but please feel free to close if I missed an existing request similar to this.
When a user selects a notebook (say from the analyze slide-out in the files grid), they see all notebooks published to workspaces they have access to. One key thing here is that notebooks are published to workspaces for access control. Notebooks with the same name may be published to different workspaces and, currently, will show up in the dropdown without any way to differentiate which one is in what workspace.
💁 Proposed Solution
I'd like the ability to section/segment/group the items in a combo-box and give each section a header. This would let me group the notebooks by what workspace they're in, and let the user know the name of that workspace by using that as the header for each section.
It looks like we can sort of get this behavior by inserting disabled items as the header, but that means we can't actually have disabled items in the list, and they don't really stand out as a 'header' and are hard to read.
The text was updated successfully, but these errors were encountered: