-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Enhanced FocusVisual for various controls #1112
Conversation
@@ -58,7 +58,7 @@ | |||
TargetType="{x:Type Fluent:Button}"> | |||
<Setter Property="Fluent:RibbonProperties.IconSize" Value="Small" /> | |||
<Setter Property="Fluent:RibbonProperties.MouseOverBackground" Value="{DynamicResource Fluent.Ribbon.Brushes.BackstageTabItem.MouseOver.Background}" /> | |||
<Setter Property="FocusVisualStyle" Value="{DynamicResource Fluent.Ribbon.Styles.ControlStyleEmptyFocus}" /> | |||
<Setter Property="FocusVisualStyle" Value="{StaticResource Fluent.Ribbon.Styles.FocusVisual.Tight}" /> |
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.
All resource usages have to use DynamicResource.
Otherwise people won't be able to overwrite those.
Just had a look at this.
I guess it would look way better if it had a narrower dotted border, instead of a rectangle with a 2 px stroke. |
…ator than the standard striped one. This is also to conform to the requirements in WCAG SC 1.4.11.
…han the current dimmed theme color. This is to conform to the requirements in WCAG SC 1.4.11.
…ritten by the consumers.
…, by only marking the ActiveBorder instead of using a FocusVisualStyle.
…remove the now superflous .Tight version.
Thanks for contributing! |
#792
Improved the visual cue for textboxes when getting keyboard focus by using the full theme color.
Improved the FocusVisualStyle for the other controls to follow the WCAG recommendations.
https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html
If this is to be improved further, the next step would be to make the controls taller in general, or add more spacing between the elements in the ribbon. As it is right now the textbox, f.ex. cant increase the size of its border without pushing nearby controls 😅