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 committed Mar 19, 2015
1 parent 66fe575 commit a1c011e
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 @@ -97,11 +97,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);

This comment has been minimized.

Copy link
@mckenzielong

mckenzielong Mar 19, 2015

Contributor

I think this broke fab's box-shadow effect in chrome 41.

This comment has been minimized.

Copy link
@robertmesserle

robertmesserle via email Mar 19, 2015

Contributor

This comment has been minimized.

Copy link
@robertmesserle

robertmesserle Mar 19, 2015

Contributor

Updated, should be good now.


transform: translate3d(0,0,0);

Expand Down

0 comments on commit a1c011e

Please sign in to comment.