Skip to content

Commit 349e40a

Browse files
committed
fix white space configuration in buttons, use old values
1 parent 0071b14 commit 349e40a

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/Button/button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $button-border-radius: $pt-border-radius;
99

1010
// $button-padding-small: 0 ($pt-grid-size * 0.7) !default;
1111
// $button-padding-large: ($pt-grid-size * 0.5) ($pt-grid-size * 1.5) !default;
12-
// $button-icon-spacing: ($pt-button-height - $pt-icon-size-standard) * 0.5 !default;
12+
$button-icon-spacing: $pt-grid-size * 0.5; // ($pt-button-height - $pt-icon-size-standard) * 0.5 !default;
1313
// $button-icon-spacing-large: ($pt-button-height-large - $pt-icon-size-large) * 0.5 !default;
1414
// $button-box-shadow: inset 0 0 0 $button-border-width rgba($black, 0.2), inset 0 (-$button-border-width) 0 rgba($black, 0.1) !default;
1515
// $button-box-shadow-active: inset 0 0 0 $button-border-width rgba($black, 0.2), inset 0 1px 2px rgba($black, 0.2) !default;

src/components/Icon/icon.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ svg.#{$eccgui}-icon {
3232
}
3333

3434
.#{$ns}-button .#{$eccgui}-icon:first-child {
35-
margin-left: -($pt-button-height - $pt-icon-size-standard) * 0.5;
35+
margin-left: -($button-icon-spacing);
3636
}
3737
.#{$ns}-button .#{$eccgui}-icon:last-child {
38-
margin-right: -($pt-button-height - $pt-icon-size-standard) * 0.5;
38+
margin-right: -($button-icon-spacing);
3939
}
4040

4141
.#{$ns}-button .#{$eccgui}-icon:first-child:last-child,
4242
.#{$ns}-button .#{$ns}-spinner + .#{$eccgui}-icon:last-child {
43-
margin: 0 (-($pt-button-height - $pt-icon-size-standard) * 0.5);
43+
margin: 0 (-($button-icon-spacing));
4444
}
4545

4646
.#{$eccgui}-button--icon {
@@ -49,7 +49,7 @@ svg.#{$eccgui}-icon {
4949
}
5050

5151
& > .#{$ns}-button-text {
52-
margin-left: -5px;
52+
margin-left: -($pt-grid-size) * 0.5;
5353
}
5454

5555
& > .#{$eccgui}-tooltip__wrapper + .#{$ns}-button-text {

src/index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
// calculate blueprintjs configuration
2626
@import "./includes/blueprintjs/variables";
2727

28-
// map our palette to BLueprint colors
28+
// map our palette to BlueprintJS colors
2929
@import "./includes/blueprintjs/colormap";
3030

31-
// load blueprintjs requisists
31+
// load blueprintjs requisites
3232
@import "./includes/blueprintjs/requisits";
3333

3434
// load blueprintjs components

0 commit comments

Comments
 (0)