Skip to content
Snippets Groups Projects
Commit 0d9723d0 authored by Andrew Hoffmann's avatar Andrew Hoffmann
Browse files

Text buttons use opacity for hover

This allows a text button to look appropriate in the App Bar when hovering over it, while still retaining desired hover behavior elsewhere by the UX design team.

I sourced the implementation from IconButton, since the hamburger menu icon in my app was behaving as desired.
parent b886b2b6
No related branches found
No related tags found
1 merge request!5Text buttons use opacity for hover
import defaultTheme from "../defaultTheme"; import defaultTheme from "../defaultTheme";
import { colorBlueHover, colorGrayHover, colorGrayLight } from "../colors"; import { colorBlueHover, colorGrayHover, colorGrayLight } from "../colors";
import {fade} from '@material-ui/core/styles/colorManipulator';
const containedOverrides = { const containedOverrides = {
"&:hover": { "&:hover": {
...@@ -26,7 +28,7 @@ const outlinedOverrides = { ...@@ -26,7 +28,7 @@ const outlinedOverrides = {
const textOverrides = { const textOverrides = {
"&:hover": { "&:hover": {
backgroundColor: colorGrayHover, backgroundColor: fade(defaultTheme.palette.action.active, defaultTheme.palette.action.hoverOpacity)
}, },
"&:disabled": { "&:disabled": {
color: colorGrayLight, color: colorGrayLight,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment