Skip to content

Commit

Permalink
feat(clay-css): Mixins clay-menubar-vertical-expand adds support fo…
Browse files Browse the repository at this point in the history
…r `.menubar-toggler .c-inner` through Sass map `toggler-c-inner`

issue #2763
  • Loading branch information
pat270 authored and marcoscv-work committed Feb 17, 2020
1 parent f3d19f0 commit cd81488
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/clay-css/src/scss/mixins/_menubar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
/// toggler-height-mobile: {Number | String}, // Default: 2rem
/// toggler-padding-x-mobile: {Number | String}, // Default: 0.5rem
/// toggler-padding-y-mobile: {Number | String | Null},
/// toggler-c-inner: {Map | Null}, // Pass parameters to `clay-css` mixin
/// @todo
/// - Add @example
/// - Add @link to documentation
Expand Down Expand Up @@ -87,6 +88,21 @@
$toggler-padding-x-mobile: setter(map-get($map, toggler-padding-x-mobile), 0.5rem); // 8px
$toggler-padding-y-mobile: map-get($map, toggler-padding-y-mobile);

$toggler-c-inner: setter(map-get($map, toggler-c-inner), ());
$toggler-c-inner: map-deep-merge((
align-items: center,
display: flex,
height: $toggler-height-mobile,
margin-bottom: math-sign($toggler-padding-y-mobile),
margin-left: math-sign($toggler-padding-x-mobile),
margin-right: math-sign($toggler-padding-x-mobile),
margin-top: math-sign($toggler-padding-y-mobile),
padding-bottom: $toggler-padding-y-mobile,
padding-left: $toggler-padding-x-mobile,
padding-right: $toggler-padding-x-mobile,
padding-top: $toggler-padding-y-mobile,
), $toggler-c-inner);

@if ($enabled) {
border-color: $border-color;
border-style: $border-style;
Expand Down Expand Up @@ -154,6 +170,12 @@
padding-right: $toggler-padding-x-mobile;
padding-top: $toggler-padding-y-mobile;

@if ($enable-c-inner) {
.c-inner {
@include clay-css($toggler-c-inner);
}
}

.lexicon-icon {
margin-top: 0;
}
Expand Down

0 comments on commit cd81488

Please sign in to comment.