Skip to content

Commit

Permalink
fix(VBadge): enable unused variable (-top, -right) (#8282)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhigash authored and johnleider committed Aug 12, 2019
1 parent 6a3b32d commit 811803b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/vuetify/src/components/VBadge/VBadge.sass
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
min-width: $badge-width
padding: 0 4px
position: absolute
right: -($badge-width)
top: -($badge-height / 2)
right: $badge-right
top: $badge-top
transition: $primary-transition

.v-icon
Expand All @@ -45,18 +45,18 @@

&--left
.v-badge__badge
left: -($badge-width)
left: $badge-right
right: initial

&--bottom
.v-badge__badge
bottom: -($badge-height / 2)
bottom: $badge-top
top: initial

+rtl()
&__badge
right: initial
left: -($badge-width)
left: $badge-right

&--overlap
.v-badge__badge
Expand All @@ -70,5 +70,5 @@

&--left
.v-badge__badge
right: -($badge-width)
right: $badge-right
left: initial
4 changes: 2 additions & 2 deletions packages/vuetify/src/components/VBadge/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ $badge-color: map-get($shades, 'white') !default;
$badge-font-family: $body-font-family !default;
$badge-font-size: 14px !default;
$badge-height: 22px !default;
$badge-top: 0 !default;
$badge-right: 0 !default;
$badge-width: 22px !default;
$badge-top: -($badge-height / 2) !default;
$badge-right: -($badge-width) !default;

0 comments on commit 811803b

Please sign in to comment.