Skip to content

Commit

Permalink
fix(button): Use only before psuedo element (#4628)
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 authored and traviskaufman committed Aug 4, 2016
1 parent 849b920 commit 009d148
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions packages/mdl-button/mdl-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,26 @@
box-sizing: border-box;
-webkit-appearance: none;

&::before,
&::after {
/* postcss-bem-linter: ignore */
&::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transition: opacity 120ms cubic-bezier(0, 0, .2, 1);
border-radius: inherit;
content: "";
}

/* postcss-bem-linter: ignore */
&::before {
background: currentColor;
content: "";
opacity: 0;
}

&:focus::before {
opacity: .12;
}

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

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

&:active {
Expand Down

0 comments on commit 009d148

Please sign in to comment.