-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor FilterableGroup, ValueData UX fixes
* ValueData showing empty ranges instead of "(any)" in some cases. * Use small "Tune" icon (like modifiers) for editable values rather than FilterList icon which is used for disabling groups/criteria. * Add apply button to FilterableGroup downdown. * Fix FilterableGroup hint ranges sometimes not updating. * Add tooltip when FilterableGroup select all button is disabled.
- Loading branch information
1 parent
6c0c17b
commit ea311af
Showing
5 changed files
with
101 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Palette, Theme } from "@mui/material/styles"; | ||
|
||
// Only allow the palette entries that are regular color palettes. | ||
export type ColorsFromPalette = Pick<Palette, "primary" | "warning" | "error">; | ||
|
||
// The current MUI version doesn't support "contained" IconButtons like Button | ||
// does so add reusable styling to emulate it. | ||
export function containedIconButtonSx(palette: keyof ColorsFromPalette) { | ||
return { | ||
"&.MuiIconButton-root": { | ||
backgroundColor: (theme: Theme) => theme.palette[palette].main, | ||
color: (theme: Theme) => theme.palette[palette].contrastText, | ||
}, | ||
"&.MuiIconButton-root:hover": { | ||
backgroundColor: (theme: Theme) => theme.palette[palette].dark, | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters