Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ghost button normal and field padding #3364

Merged
merged 10 commits into from
Jul 17, 2019
4 changes: 4 additions & 0 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@
&.#{$prefix}--btn--sm {
padding: $button-padding-ghost-sm;
}

&.#{$prefix}--btn--field {
padding: $button-padding-ghost-field;
}
}

.#{$prefix}--btn--icon-only {
Expand Down
7 changes: 6 additions & 1 deletion packages/components/src/globals/scss/_theme-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,18 @@
/// @type Number
/// @access public
/// @group button
$button-padding-ghost: 11px 13px !default !global;
$button-padding-ghost: calc(0.875rem - 3px) 12px !default !global;

/// @type Number
/// @access public
/// @group button
$button-padding-ghost-sm: 0.375rem 1rem !default !global;

/// @type Number
/// @access public
/// @group button
$button-padding-ghost-field: calc(0.675rem - 3px) 12px !default !global;

/// @type Number
/// @access public
/// @group button
Expand Down