-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[front] fix: ensure background color is set on hover for mobile butto…
…ns (#2026) * [front] fix: ensure background color is set on hover for mobile buttons * use color from palette in CriterionButtons
- Loading branch information
1 parent
46d0d2c
commit 07973b3
Showing
7 changed files
with
53 additions
and
15 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,19 @@ | ||
import React from 'react'; | ||
import { Button, ButtonProps } from '@mui/material'; | ||
|
||
const MobileButton = (props: ButtonProps) => { | ||
return ( | ||
<Button | ||
{...props} | ||
sx={{ | ||
...props.sx, | ||
bgcolor: 'background.mobileButton', | ||
'&:hover': { | ||
bgcolor: 'background.mobileButton', | ||
}, | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default MobileButton; |
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,19 @@ | ||
import React from 'react'; | ||
import { IconButton, IconButtonProps } from '@mui/material'; | ||
|
||
const MobileIconButton = (props: IconButtonProps) => { | ||
return ( | ||
<IconButton | ||
{...props} | ||
sx={{ | ||
...props.sx, | ||
bgcolor: 'background.mobileButton', | ||
'&:hover': { | ||
bgcolor: 'background.mobileButton', | ||
}, | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default MobileIconButton; |
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,2 @@ | ||
export { default as MobileButton } from './MobileButton'; | ||
export { default as MobileIconButton } from './MobileIconButton'; |
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