Skip to content

Commit

Permalink
use $ouds-button-size-loader token
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahiss committed Dec 13, 2024
1 parent 3294876 commit 49f9a1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
mask-image: var(--#{$prefix}loading-indeterminate-icon);
mask-repeat: no-repeat;
mask-position: 50% 50%;
mask-size: 1.25rem;
mask-size: px-to-rem($ouds-button-size-loader);
animation: loading-indeterminate-rotate 2s linear infinite;
}
}
Expand Down Expand Up @@ -190,8 +190,7 @@
mask-image: var(--#{$prefix}loading-indeterminate-icon);
mask-repeat: no-repeat;
mask-position: 50% 50%;
mask-size: 1.25rem;
// TODO
mask-size: px-to-rem($ouds-button-size-loader);;
}
}

Expand Down Expand Up @@ -353,8 +352,8 @@
}

.btn-default-on-colored-bg {
--#{$prefix}btn-border-width: #{$ouds-button-border-width-default}; // TODO Default token?
--#{$prefix}btn-interaction-border-width: #{$ouds-border-width-none}; // TODO Not default token?
--#{$prefix}btn-border-width: #{$ouds-button-border-width-default};
--#{$prefix}btn-interaction-border-width: #{$ouds-border-width-none}; // TODO Use token $ouds-button-border-width-default-interaction-mono when available
@include button-variant(
$ouds-button-color-bg-default-enabled-mono,
$ouds-button-color-border-default-enabled-mono,
Expand Down Expand Up @@ -401,8 +400,8 @@
}

.btn-minimal-on-colored-bg {
--#{$prefix}btn-border-width: #{$ouds-button-border-width-minimal}; // TODO Minimal token?
--#{$prefix}btn-interaction-border-width: #{$ouds-button-border-width-minimal-interaction}; // TODO Minimal token?
--#{$prefix}btn-border-width: #{$ouds-button-border-width-minimal};
--#{$prefix}btn-interaction-border-width: #{$ouds-button-border-width-minimal-interaction};
@include button-variant(
$ouds-button-color-bg-minimal-enabled-mono,
$ouds-button-color-border-minimal-enabled-mono,
Expand Down
2 changes: 1 addition & 1 deletion scss/tokens/_component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ $ouds-button-color-content-minimal-loading: var(--#{$prefix}color-action-loading
$ouds-button-color-content-minimal-pressed: var(--#{$prefix}color-action-pressed) !default;
$ouds-button-size-icon: $ouds-size-icon-with-label-large-size-xs !default;
$ouds-button-size-icon-only: $ouds-size-icon-with-label-large-size-sm !default;
// $ouds-button-size-loader: $ouds-size-icon-with-label-large-size-xs !default;
$ouds-button-size-loader: $ouds-size-icon-with-label-large-size-xs !default;
// $ouds-button-space-column-gap-arrow: $ouds-space-column-gap-shorter !default;
$ouds-button-space-column-gap-icon: $ouds-space-column-gap-short !default;
$ouds-button-space-inset-icon-alone: $ouds-space-inset-medium !default;
Expand Down

0 comments on commit 49f9a1f

Please sign in to comment.