Skip to content

Commit

Permalink
feat(button): add icon spacer (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek authored Jan 17, 2025
1 parent a2011be commit 834b9e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/assets/scss/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
$button-background-color: transparent !default;
$button-color: var(--#{$prefix}black) !default;
$button-border-radius: var(--#{$prefix}base-border-radius) !default;

$button-border-color: var(--#{$prefix}grey-lighter) !default;
$button-border: 1px solid $button-border-color !default;
$button-box-shadow: none !default;
$button-font-weight: 400 !default;
$button-line-height: var(--#{$prefix}base-line-height) !default;
$button-margin-icon-to-text: 0.1875em !default;
$button-margin: 0 !default;
$button-spacer: 0.5rem !default;
$button-height: $control-height !default;
$button-padding: $control-padding-vertical 0.75em !default;
$button-rounded-border-radius: var(
Expand Down Expand Up @@ -215,4 +215,8 @@ $button-outlined-border-color: var(--#{$prefix}grey-light) !default;
height: 1em;
width: 1em;
}

.o-icon:not(:last-child) {
margin-right: var(--#{$prefix}button-spacer, $button-spacer);
}
}
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Oruga from "@oruga-ui/oruga-next";
import Examples from "@oruga-ui/examples";

// add examples styles
import "@oruga-ui/examples/dist/style.css";
import "@oruga-ui/examples/dist/examples.css";

// add theme styles
import "./assets/scss/oruga-build.scss";
Expand Down

0 comments on commit 834b9e9

Please sign in to comment.