Skip to content

fix(query-builder): update fluent query builder buttons styling#17149

Open
didimmova wants to merge 1 commit into21.0.xfrom
didimmova/fix-fluent-query-builder-buttons-21.0.x
Open

fix(query-builder): update fluent query builder buttons styling#17149
didimmova wants to merge 1 commit into21.0.xfrom
didimmova/fix-fluent-query-builder-buttons-21.0.x

Conversation

@didimmova
Copy link
Copy Markdown
Contributor

Closes #17080

Here's the Handoff

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Fluent theme styling for Query Builder expression group buttons (AND/OR) to align hover/focus-hover backgrounds with the expression foreground colors, per issue #17080.

Changes:

  • Updated Fluent AND button state backgrounds to derive from color-expression-group-and with theme alpha values.
  • Updated Fluent OR button state backgrounds to derive from color-expression-group-or with theme alpha values.

Comment on lines 258 to +264
@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});
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked issue requests updating only the hover and focused-hover backgrounds for Fluent AND/OR expression buttons. This change also updates --focus-background and --active-background from transparent/gray to tinted values, which will change keyboard-focus and pressed visuals beyond the requested states. If the intent is strictly to address hover + focused-hover, consider reverting --focus-background and --active-background for Fluent to their previous values (or confirm the design spec includes these state changes).

Copilot uses AI. Check for mistakes.
Comment on lines 308 to +314
@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});
--hover-background: hsl(from #{var-get($theme, 'color-expression-group-or')} h s l / #{$alpha-hover});
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the AND button: for Fluent OR expression buttons, the issue calls out hover and focused-hover only, but this hunk also changes --focus-background and --active-background to tinted values. If that’s not in the design handoff, consider limiting the Fluent changes to --hover-background and --focus-hover-background to avoid unintended visual regressions for focus/pressed states.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Query Builder] [Advanced Filtering] Change the background of the expression buttons AND/OR in hover/focused-hover

3 participants