Skip to content

Commit

Permalink
fix(stark-ui): properly scale svg from mat-icon
Browse files Browse the repository at this point in the history
replaced fixed size of 18px with `transform: scale(.75)` the default is 24px so it should scale to 18px

ISSUE: #732
  • Loading branch information
carlo-nomes committed Jan 11, 2019
1 parent e73766a commit f6a6258
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions packages/stark-ui/assets/themes/_button-theme.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
$icon-size: 18px;

@mixin stark-button-color($color, $contrast) {
&.mat-button,
&.mat-icon-button,
&.mat-stroked-button {
color: $color;

.mat-button-focus-overlay {
background-color: rgba($color: $color, $alpha: 0.12);
}

.mat-ripple-element {
background-color: rgba($color: $color, $alpha: 0.1);
}
Expand All @@ -18,6 +18,7 @@ $icon-size: 18px;
&.mat-mini-fab {
color: $contrast;
background-color: $color;

.mat-ripple-element {
background-color: rgba($color: $contrast, $alpha: 0.1);
}
Expand Down Expand Up @@ -50,13 +51,7 @@ $icon-size: 18px;
}

.mat-icon.stark-small-icon {
line-height: $icon-size;
height: $icon-size;
width: $icon-size;
svg {
height: $icon-size;
width: $icon-size;
}
transform: scale(0.75);
}

.mat-button,
Expand All @@ -68,13 +63,3 @@ $icon-size: 18px;
.mat-mini-fab {
text-transform: uppercase;
}

button {
&.mat-mini-fab,
&.mat-fab {
line-height: $icon-size;
.mat-button-wrapper {
line-height: $icon-size;
}
}
}

0 comments on commit f6a6258

Please sign in to comment.