Skip to content

Commit

Permalink
use slotProps in PaperProps and clarify changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
juliawegmayr committed Jan 31, 2024
1 parent f17fa7a commit cf1f776
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .changeset/tender-dots-warn.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"@comet/admin": major
---

Remove the `paper` class key

Remove the `paper` class key from `FilterBarPopoverFilterClassKey`
Instead of using `styleOverrides` for `paper` in the theme, use the `slotProps` and `sx` props.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ export function FilterBarPopoverFilter(inProps: React.PropsWithChildren<FilterBa
PaperProps={{
square: true,
elevation: 1,
...slotProps?.popover?.PaperProps,
sx: {
marginLeft: "-1", //due to border of popover, but now overrideable with styling if needed
marginTop: "2", //due to boxShadow of popover to not overlap border of clickable fieldBar
...slotProps?.popover?.PaperProps?.sx,
},
}}
elevation={2}
Expand Down

0 comments on commit cf1f776

Please sign in to comment.