mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 15:30:40 +00:00
Hover
This commit is contained in:
parent
c082c542ef
commit
90c36a5eee
@ -94,20 +94,28 @@ export const RowButtonDivider: React.FC<RowButtonDividerProps> = ({
|
|||||||
*/
|
*/
|
||||||
export const RowButtonGroup = styled("div")(
|
export const RowButtonGroup = styled("div")(
|
||||||
({ theme }) => `
|
({ theme }) => `
|
||||||
// & > .MuiMenuItem-root{
|
background-color: ${theme.vars.palette.fill.faint};
|
||||||
// border-radius: 8px;
|
border-radius: 8px;
|
||||||
// background-color: transparent;
|
/** Modify the RowButton style when it is placed inside a RowButtonGroup */
|
||||||
// }
|
& > button {
|
||||||
// & > .MuiMenuItem-root:not(:last-of-type) {
|
border-radius: 8px;
|
||||||
// border-bottom-left-radius: 0;
|
background-color: transparent;
|
||||||
// border-bottom-right-radius: 0;
|
}
|
||||||
// }
|
& > button:not(:last-of-type) {
|
||||||
// & > .MuiMenuItem-root:not(:first-of-type) {
|
border-bottom-left-radius: 0;
|
||||||
// border-top-left-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
// border-top-right-radius: 0;
|
}
|
||||||
// }
|
& > button:not(:first-of-type) {
|
||||||
// background-color: ${theme.vars.palette.fill.faint};
|
border-top-left-radius: 0;
|
||||||
// border-radius: 8px;
|
border-top-right-radius: 0;
|
||||||
|
}
|
||||||
|
& > button:hover {
|
||||||
|
/* These fills are translucent and additive, and the RowButtonGroup
|
||||||
|
already has a background, so pick a (transparent) color that gives us
|
||||||
|
a similar outcome of the hover state as for a RowButton that is not
|
||||||
|
inside a RowButtonGroup */
|
||||||
|
background-color: ${theme.vars.palette.fill.faintHover};
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user