-
Notifications
You must be signed in to change notification settings - Fork 160
fix(query-builder): update fluent query builder buttons styling #17148
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
base: 20.1.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -257,11 +257,11 @@ | |
|
|
||
| @if $variant == 'fluent' { | ||
| --background: transparent; | ||
| --focus-hover-background: #{color($color: 'gray', $variant: if($theme-variant == 'light', 200, 50))}; | ||
| --focus-hover-background: hsl(from #{var-get($theme, 'color-expression-group-and')} h s l / #{$alpha-hover}); | ||
| --focus-visible-background: transparent; | ||
| --focus-background: transparent; | ||
| --active-background: #{color($color: 'gray', $variant: if($theme-variant == 'light', 200, 50))}; | ||
| --hover-background: #{color($color: 'gray', $variant: if($theme-variant == 'light', 200, 50))}; | ||
| --focus-background: hsl(from #{var-get($theme, 'color-expression-group-and')} h s l / #{$alpha-focus}); | ||
| --active-background: hsl(from #{var-get($theme, 'color-expression-group-and')} h s l / #{$alpha-focus}); | ||
| --hover-background: hsl(from #{var-get($theme, 'color-expression-group-and')} h s l / #{$alpha-hover}); | ||
| } | ||
|
|
||
| --foreground: #{var-get($theme, 'color-expression-group-and')}; | ||
|
|
@@ -307,11 +307,11 @@ | |
|
|
||
| @if $variant == 'fluent' { | ||
| --background: transparent; | ||
| --focus-hover-background: #{color($color: 'gray', $variant: if($theme-variant == 'light', 200, 50))}; | ||
| --focus-hover-background: hsl(from #{var-get($theme, 'color-expression-group-or')} h s l / #{$alpha-hover}); | ||
| --focus-visible-background: transparent; | ||
| --focus-background: transparent; | ||
| --active-background: #{color($color: 'gray', $variant: if($theme-variant == 'light', 200, 50))}; | ||
| --hover-background: #{color($color: 'gray', $variant: if($theme-variant == 'light', 200, 50))}; | ||
| --focus-background: hsl(from #{var-get($theme, 'color-expression-group-or')} h s l / #{$alpha-focus}); | ||
| --active-background: hsl(from #{var-get($theme, 'color-expression-group-or')} h s l / #{$alpha-focus}); | ||
|
Comment on lines
+310
to
+313
|
||
| --hover-background: hsl(from #{var-get($theme, 'color-expression-group-or')} h s l / #{$alpha-hover}); | ||
| } | ||
|
|
||
| --foreground: #{var-get($theme, 'color-expression-group-or')}; | ||
|
|
||
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.
For the Fluent variant, this change updates not only the requested hover/focused-hover background, but also
--focus-backgroundand--active-backgroundto use the expression color at$alpha-focus(.16). Issue #17080 only calls for updating hover + focused-hover to 8% while keeping other visuals unchanged; setting a non-transparent focus/active background could introduce an unintended visual regression (especially for keyboard focus). Consider keeping--focus-background/--active-backgroundas before (transparent / previous value), or explicitly matching the design spec if focus/active should also change.