diff --git a/core/src/components/fab-button/fab-button.scss b/core/src/components/fab-button/fab-button.scss index e7214a0ec5a..4ded1226c8c 100755 --- a/core/src/components/fab-button/fab-button.scss +++ b/core/src/components/fab-button/fab-button.scss @@ -45,7 +45,10 @@ --margin-bottom: calc((#{$fab-size} - var(--height)) / 2); --transition: background-color, opacity 100ms linear; --ripple-color: currentColor; - + --border-radius: #{$fab-border-radius}; + --border-width: 0; + --border-style: none; + --border-color: initial; display: block; font-size: 14px; @@ -76,7 +79,7 @@ } .button-native { - @include border-radius(50%); + @include border-radius(var(--border-radius)); @include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start)); @include margin(var(--margin-top), var(--margin-end), var(--margin-bottom), var(--margin-start)); @include text-inherit(); @@ -91,7 +94,9 @@ transition: var(--transition); - border: 0; + border-width: var(--border-width); + border-style: var(--border-style); + border-color: var(--border-color); outline: none; diff --git a/core/src/components/fab-button/fab-button.vars.scss b/core/src/components/fab-button/fab-button.vars.scss index 7f8286dd916..a8482b834f0 100755 --- a/core/src/components/fab-button/fab-button.vars.scss +++ b/core/src/components/fab-button/fab-button.vars.scss @@ -8,3 +8,6 @@ $fab-size: 56px !default; /// @prop - Width and height of the mini FAB button $fab-mini-size: 40px !default; + +/// @prop - Border radius of the FAB button +$fab-border-radius: 50% !default; diff --git a/core/src/components/fab-button/test/standalone/index.html b/core/src/components/fab-button/test/standalone/index.html index 4a9d103c80e..dbfcb6f93a4 100644 --- a/core/src/components/fab-button/test/standalone/index.html +++ b/core/src/components/fab-button/test/standalone/index.html @@ -65,6 +65,10 @@

Custom

+ Border + Border + +