Skip to content

Commit

Permalink
feat(utils): add border color utility classnames
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Feb 15, 2021
1 parent 69ac5c7 commit 2568bd2
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/default/scss/utils/_border.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@include exports( "utils/border" ) {

// Border utility classes
// sass-lint:disable-block no-important

$utils-border-sides: (
"border",
"border-top",
Expand All @@ -14,7 +16,9 @@
1: 1px
) !default;

// sass-lint:disable no-important
$utils-border-color: $theme-colors !default;


@if $utils-border-sides and $utils-border-width {
@each $side in $utils-border-sides {

Expand All @@ -29,6 +33,13 @@
}
}
}
// sass-lint:enable no-important

@if $utils-border-color {
@each $name, $color in $utils-border-color {
.k-border-#{$name} {
border-color: $color !important;
}
}
}

}

0 comments on commit 2568bd2

Please sign in to comment.