-
Notifications
You must be signed in to change notification settings - Fork 418
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
Standardize grid selection and selected row display #1081
Comments
Would like to ensure that where appropriate the selection is keyboard shortcut friendly so that it's easy to select an item to see its details, and then arrow up/down to change selection. Makes browsing through a list of items really smooth. |
@leslierichardson95 could we get guidance on this, so it can be implemented? |
Let's do the single-row click option. I think that may allow us to keep the main grid a reasonable size as we continue to add content in the future. |
@adamint Is their progress on adding row selection to Fluent UI? It will take time to agree on this feature, the feature to be implemented and then for it to get released. It needs to be started far in advance of changing Aspire to use it. |
Moved the issue about the component we're adding to #1782 - it will be more similar to a tree view so that we can easily display replicas |
I'll be clearer: I thought there was a decision at a meeting a month ago that you'd reach out to the Fluent UI folks about a feature to make row selection better. Has that happened? Or did one of us misinterpret the outcome of the meeting? |
You’re right that there will be an additional component we will use; it was then decided that we (I) will be the ones to create that new component in fluentui-blazor @JamesNK |
It's really important to start talking to them sooner rather than later about what we want to do and come to a consensus about the best way to do it. We can probably simulate a tree view by building on top of GridView - there is an example of doing that here. We can do something similar on the resource grid. But row navigation will definitely require changes inside GridView. Please create an issue on the FluentUI repo about what we want and start a discussion about the changes required. |
Copied from #1788 (comment)
Can we get specific about what doesn't work with the current grid as far as accessibility goes? I'm sure I'm missing something from the list, but here's a starting point:
For 2 The W3C examples (e.g. https://www.w3.org/WAI/ARIA/apg/patterns/grid/examples/data-grids/) use a keydown handler on cells. We could do the same. For 3 it seems like it might be sufficient to give the div for the cell an aria-role of button. The W3C examples above use a hidden button, though off hand I don't see a reason why that'd be better. |
We will be ensuring the elements are focusable, and we will already be attaching click and keydown events, so there is nothing else needed! |
Splitting this off from #590
Right now we've got a couple different ways that selection happens in our grids:
Resources, Structured Logs and Traces: A
View
button (under the Environment (Resources), Details (Structured Logs) and unlabeled (Traces) column headers respectively) needs to be clicked to go to details. In the case of Resources and Structured Logs this pops open the details pane. In the case of Traces it navigates to another page.Trace Detail: The entire row is clickable. Clicking pops open the details pane.
In all three of the details pane scenarios (Resources, Structured Logs and Trace Detail) there is no indication on the grid of what was selected. The details pane has a header that displays identifying information about the selection, but there's no visual connection back to the row.
In some cases, full-row selection may not be appropriate (what's the UX with clickable links/buttons within the row, for instance).
We should determine if (or when) we want full-row selection and how we want to indicate the selection in each of the above scenarios.
The text was updated successfully, but these errors were encountered: