Skip to content

Commit

Permalink
fix(Button): add pointer events none for disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Sep 25, 2018
1 parent db7c7b1 commit 82c609e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/atoms/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const theme = createTheme(name, (colors: *, sizes: *): * => ({
borderColor: colors.LIGHT_GRAY3,
color: colors.LIGHT_GRAY3,
cursor: 'default',
pointerEvents: 'none',

svg: {
color: colors.LIGHT_GRAY3,
Expand Down
1 change: 1 addition & 0 deletions storybook/__tests__/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,7 @@ exports[`Storyshots ATOMS/Button with disabled modifiers 1`] = `
color: #E5E9EC;
height: 4rem;
padding: 0 4rem;
pointer-events: none;
}
.emotion-0:hover {
Expand Down

0 comments on commit 82c609e

Please sign in to comment.