Skip to content
Snippets Groups Projects
Unverified Commit e2bad7a6 authored by aeschylus's avatar aeschylus Committed by GitHub
Browse files

Merge pull request #2207 from ProjectMirador/2204-sidebar-tabs

Add button hover styles to our window sidebar tabs; fixes #2205
parents 896a21d9 75ea2ea9
Branches
Tags
No related merge requests found
import { compose } from 'redux'; import { compose } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core'; import { withStyles } from '@material-ui/core';
import { fade } from '@material-ui/core/styles/colorManipulator';
import { withTranslation } from 'react-i18next'; import { withTranslation } from 'react-i18next';
import * as actions from '../state/actions'; import * as actions from '../state/actions';
import { import {
...@@ -48,10 +49,24 @@ const style = theme => ({ ...@@ -48,10 +49,24 @@ const style = theme => ({
tab: { tab: {
minWidth: 'auto', minWidth: 'auto',
borderRight: '4px solid transparent', borderRight: '4px solid transparent',
'&:hover': {
textDecoration: 'none',
backgroundColor: fade(theme.palette.text.primary, theme.palette.action.hoverOpacity),
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: 'transparent',
},
'&$disabled': {
backgroundColor: 'transparent',
},
},
}, },
tabSelected: { tabSelected: {
backgroundColor: theme.palette.secondary.light, backgroundColor: theme.palette.secondary.light,
borderRight: `4px solid ${theme.palette.secondary.main}`, borderRight: `4px solid ${theme.palette.secondary.main}`,
'&:hover': {
backgroundColor: theme.palette.secondary.light,
},
}, },
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment