-
Notifications
You must be signed in to change notification settings - Fork 462
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
Change traces page duration progress bar to a ring icon #1387
Conversation
Why is the FluentProgressRing component not being used? I would strongly suggest using it. Overall, I do like this idea a lot fyi: you can do a quick accessibility pass using Accessibility Insights for web |
And |
@vnbaaij are these improvements possible? I see these properties are configurable in other fluent ui wrappers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you double check that this passes Accessibility Insights check? I wonder if the svg needs labeling
We can style most of the FluentProgressRing ourselves as is. This is with the FluentProgressRing and just giving a color to the rest of the ring. I didn't change the stroke width. I think it looks ok. This is with adding: ::deep fluent-progress-ring::part(background) {
stroke: var(--neutral-fill-input-alt-active);
} to the Traces.razor.css file on your branch, James. |
Good improvement. I'll stick to my guns on it looking better with a thicker line. How about using custom SVG for now, and if Fluent UI adds an option in the future for changing the stroke width, then we switch to |
Created a feature request for the FluentUI folks: microsoft/fluentui-blazor#1113 |
We can get close to what you've got with just CSS. It's a little chunkier than yours because we can't change the viewbox, but this is 4px stroke width like yours: ::deep fluent-progress-ring::part(background) {
stroke: var(--neutral-fill-input-alt-active);
stroke-width: 4px;
r: 6px;
}
::deep fluent-progress-ring::part(determinate) {
stroke-width: 4px;
r: 6px;
} We do get a bunch of aria attributes with the FluentProgressRing that'll be helpful for accessibility... just need to add a title attribute and it'll pass, I think. But I'm fine either way. Just trying to provide options. |
Updated to use progress ring control and passed a11y tool check. |
This CSS seems correct, but the |
Thanks, I see it's definitely off when I hardcode 25%, 50% and 75% values. I don't think there is a constant |
In deed, I'm looking into the possibility of adding a |
Will be included in the next release of FluentUI.Blazor lib. |
6b49838
to
9138218
Compare
Fixes #689
a11y requirements make the trace progress bar problematic. A potential replacement is to replace the progress bar with an icon.
Looks pretty good to me. Hopefully no a11y issues? 🙏 Has a benefit of being in the duration column so it's obvious what it's for. Some people either didn't notice the progress bar or didn't know what it meant.
Screenshot:
Thoughts?
The PR code is hacky. If we like this then I'll clean it up.
Microsoft Reviewers: Open in CodeFlow