Skip to content

Commit

Permalink
fix(@clayui/css): Mixins clay-nav-variant don't set to empty map
Browse files Browse the repository at this point in the history
  • Loading branch information
pat270 committed Dec 16, 2021
1 parent d79e115 commit 22f183d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
4 changes: 3 additions & 1 deletion packages/clay-css/src/scss/cadmin/components/_navs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@
// Nav Tabs

.nav-tabs {
@include clay-nav-variant($cadmin-nav-tabs) .dropdown-menu {
@include clay-nav-variant($cadmin-nav-tabs);

.dropdown-menu {
@include border-top-radius(0);

margin-top: math-sign($cadmin-nav-tabs-border-width);
Expand Down
17 changes: 5 additions & 12 deletions packages/clay-css/src/scss/mixins/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,11 @@
@if (type-of($map) == 'map') {
$enabled: setter(map-get($map, enabled), true);

$base: setter($map, ());
$base: map-merge(
$base,
$map,
(
background-color:
setter(map-get($map, bg), map-get($base, background-color)),
setter(map-get($map, bg), map-get($map, background-color)),
)
);

Expand Down Expand Up @@ -221,21 +220,15 @@
}

.nav-link-monospaced {
@include clay-link(
setter(map-get($map, nav-link-monospaced), ())
);
@include clay-link(map-get($map, nav-link-monospaced));
}

.nav-btn {
@include clay-button-variant(
setter(map-get($map, nav-btn), ())
);
@include clay-button-variant(map-get($map, nav-btn));
}

.nav-btn-monospaced {
@include clay-button-variant(
setter(map-get($map, nav-btn-monospaced), ())
);
@include clay-button-variant(map-get($map, nav-btn-monospaced));
}

.nav-item {
Expand Down

0 comments on commit 22f183d

Please sign in to comment.