Skip to content

Commit

Permalink
fix(VBtn): add boolean rounded support
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Mar 2, 2022
1 parent ea082f7 commit dec48eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vuetify/src/components/VBtn/VBtn.sass
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@
&:focus-visible::after
opacity: calc(.25 * var(--v-theme-overlay-multiplier))

&--flat
box-shadow: none

&--icon
border-radius: $button-icon-border-radius
min-width: 0
Expand Down Expand Up @@ -99,6 +96,9 @@
@include button-sizes($button-stacked-sizes, true)
@include button-density('height', $button-stacked-density)

&--rounded
@include tools.rounded($button-rounded-border-radius)

.v-btn__content
transition: $button-content-transition

Expand Down
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VBtn/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ $button-text-transform: tools.map-deep-get(settings.$typography, 'button', 'text
$button-vertical-align: middle !default;
$button-width-ratio: math.div(16, 9) !default;
$button-stacked-width-ratio: 1 !default;
$button-rounded-border-radius: map.get(settings.$rounded, 'xl') !default;

$button-density: ('default': 0, 'comfortable': -2, 'compact': -3) !default;
$button-stacked-density: ('default': 0, 'comfortable': -4, 'compact': -6) !default;
Expand Down

0 comments on commit dec48eb

Please sign in to comment.