diff --git a/ionic/components/button/extensions/material.scss b/ionic/components/button/extensions/material.scss index cf875c9b89..db246b4fd7 100644 --- a/ionic/components/button/extensions/material.scss +++ b/ionic/components/button/extensions/material.scss @@ -43,6 +43,16 @@ $button-material-border-radius: 3px !default; font-size: $button-small-icon-size; } + &[outline] { + box-shadow: none; + + .md-ripple { + &.is-visible { + opacity: 0.2; + } + } + } + @each $color, $value in $colors { &[#{$color}] { @@ -58,6 +68,23 @@ $button-material-border-radius: 3px !default; opacity: 1; background-color: get-color($color, base); } + + &[outline] { + @if lightness(get-color($color, base)) >= 80 { + .md-ripple { + background-color: black; + } + } @else { + .md-ripple { + background-color: get-color($color, base); + } + } + &:active, + &.activated { + opacity: 1; + background: transparent; + } + } } } } diff --git a/ionic/components/button/test/outline/main.html b/ionic/components/button/test/outline/main.html index 4bb8865ce0..e638d7b92b 100644 --- a/ionic/components/button/test/outline/main.html +++ b/ionic/components/button/test/outline/main.html @@ -1,42 +1,16 @@