Skip to content
Snippets Groups Projects
Commit 2422648b authored by Jessie Keck's avatar Jessie Keck Committed by Chris Beer
Browse files

Restyle active/hover states of WindowSideBarButton tabs. (#2296)

parent 859774b6
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,7 @@ export class WindowSideBarButtons extends Component {
<InfoIcon />
</Tooltip>
)}
TouchRippleProps={{ classes: { child: classes.tabRipple } }}
value="info"
/>
<Tab
......@@ -67,6 +68,7 @@ export class WindowSideBarButtons extends Component {
<CanvasIndexIcon />
</Tooltip>
)}
TouchRippleProps={{ classes: { child: classes.tabRipple } }}
value="canvas_navigation"
/>
<Tab
......@@ -81,6 +83,7 @@ export class WindowSideBarButtons extends Component {
</Badge>
</Tooltip>
)}
TouchRippleProps={{ classes: { child: classes.tabRipple } }}
value="annotations"
/>
</Tabs>
......
......@@ -37,23 +37,26 @@ const mapStateToProps = (state, { windowId }) => ({
/** */
const style = theme => ({
tab: {
'&:active': {
backgroundColor: theme.palette.action.active,
},
'&:hover': {
'@media (hover: none)': {
backgroundColor: 'transparent',
},
backgroundColor: fade(theme.palette.text.primary, theme.palette.action.hoverOpacity),
backgroundColor: theme.palette.action.hover,
textDecoration: 'none',
// Reset on touch devices, it doesn't add specificity
},
borderRight: '4px solid transparent',
borderRight: '2px solid transparent',
minWidth: 'auto',
},
tabSelected: {
'&:hover': {
backgroundColor: theme.palette.secondary.light,
tabRipple: {
backgroundColor: theme.palette.action.active,
},
backgroundColor: theme.palette.secondary.light,
borderRight: `4px solid ${theme.palette.secondary.main}`,
tabSelected: {
borderRight: `2px solid ${theme.palette.secondary.main}`,
},
tabsFlexContainer: {
flexDirection: 'column',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment