Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(button): fixes ripple on fab buttons in safari
Browse files Browse the repository at this point in the history
Closes #1856
  • Loading branch information
Robert Messerle authored and Marcy Sutton committed Mar 23, 2015
1 parent 4fa14e1 commit 82dc0c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ $button-fab-toast-offset: $button-fab-height * 0.75;
width: $button-fab-width;
height: $button-fab-height;

border-radius: 50%;

@extend .md-shadow-bottom-z-1;
border-radius: 50%;
background-clip: padding-box;
overflow: hidden;
// The following hack causes Safari to respect overflow hidden for ripples
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);

transform: translate3d(0,0,0);

Expand Down

0 comments on commit 82dc0c2

Please sign in to comment.