Skip to content

Commit

Permalink
fix(button): Use only before psuedo element
Browse files Browse the repository at this point in the history
Let Tooltips have control over the after psuedo element so they will inter-operate with buttons.
  • Loading branch information
Garbee committed Aug 2, 2016
1 parent 0df2a39 commit 17d2bc6
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/mdl-button/mdl-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
box-sizing: border-box;
-webkit-appearance: none;

&::before,
&::after {
&::before {
position: absolute;
top: 0;
left: 0;
Expand All @@ -60,15 +59,7 @@
opacity: .12;
}

&::after {
width: 100%;
height: 100%;
background: black;
opacity: 0;
overflow: hidden;
}

&:active::after {
&:active::before {
opacity: .06;
}

Expand Down

0 comments on commit 17d2bc6

Please sign in to comment.