Skip to content

Commit

Permalink
fixed disabled menu button hover issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien committed May 21, 2019
1 parent 8905738 commit d50fd07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/components/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ const StyledButton = styled.button`
${createBoxStyles()};
border: 2px solid transparent;
&:hover {
${createWellBorderStyles(false)}
${({ isDisabled }) => !isDisabled && createWellBorderStyles(false)}
}
&:active {
${createWellBorderStyles(true)}
${({ isDisabled }) => !isDisabled && createWellBorderStyles(true)}
}
${({ active }) => active && createBorderStyles(true)}
${({ isDisabled }) => isDisabled && createDisabledTextStyles()}
`
: css`
${createBoxStyles()};
${({ active }) =>
active ? createBorderStyles(true) : createBorderStyles(false)}
${({ isDisabled }) =>
isDisabled && createDisabledTextStyles()}
&:active {
&:active {
${({ isDisabled }) => !isDisabled && createBorderStyles(true)}
}
${({ isDisabled }) => isDisabled && createDisabledTextStyles()}
`}
${commonButtonStyles}
`;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Window/Window.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ storiesOf("Window", module)
<Button variant="menu" size="sm">
Edit
</Button>
<Button variant="menu" size="sm">
<Button variant="menu" size="sm" disabled>
Save
</Button>
</Toolbar>
Expand Down

0 comments on commit d50fd07

Please sign in to comment.