Skip to content

Commit

Permalink
refactor: update flyout footer to use highlighted background
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Dec 9, 2024
1 parent e33d51f commit bb9248a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/eui-theme-borealis/src/variables/_components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const component_colors: _EuiThemeComponentColors = {
filterSelectItemBackgroundFocusDisabled:
background_colors.backgroundBaseDisabled,

flyoutFooterBackground: background_colors.backgroundBaseHighlighted,
flyoutCloseButtonInsideBackground: background_colors.backgroundBasePlain,

headerBackground: background_colors.backgroundBasePlain,
Expand Down Expand Up @@ -220,6 +221,7 @@ export const components: _EuiThemeComponents = {
filterSelectItemBackgroundFocusDisabled:
dark_background_colors.backgroundBaseDisabled,

flyoutFooterBackground: dark_background_colors.backgroundBaseHighlighted,
flyoutCloseButtonInsideBackground:
dark_background_colors.backgroundBasePlain,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export type _EuiThemeComponentColors = {

filterSelectItemBackgroundFocusDisabled: ColorModeSwitch;

flyoutFooterBackground: ColorModeSwitch;
flyoutCloseButtonInsideBackground: ColorModeSwitch;

keyPadMenuItemBackgroundDisabledSelect: ColorModeSwitch;
Expand Down
2 changes: 1 addition & 1 deletion packages/eui/src/components/flyout/flyout_footer.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const euiFlyoutFooterStyles = (euiThemeContext: UseEuiTheme) => {

return {
euiFlyoutFooter: css`
background-color: ${euiTheme.colors.lightestShade};
background-color: ${euiTheme.components.flyoutFooterBackground};
flex-grow: 0;
`,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ const component_colors: _EuiThemeComponentColors = {
['colors.disabled']
),

flyoutFooterBackground: computed(
([lightestShade]) => lightestShade,
['colors.lightestShade']
),
flyoutCloseButtonInsideBackground: computed(
([emptyShade]) => transparentize(emptyShade, 0.9),
['colors.emptyShade']
Expand Down

0 comments on commit bb9248a

Please sign in to comment.