Skip to content

Commit

Permalink
fix(toolbar): hide collapsed search input bottom border
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Jan 2, 2019
1 parent 56f9468 commit d28e39c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/toolbar/_toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $css--helpers: true;
@import '../overflow-menu/overflow-menu';
@import '../search/search';

@include exports('toolbar') {
@mixin toolbar {
.#{$prefix}--toolbar {
@include font-family;
display: flex;
Expand Down Expand Up @@ -125,3 +125,18 @@ $css--helpers: true;
border: none;
}
}

@mixin toolbar--x {
@include toolbar;
.#{$prefix}--toolbar-search:not(.#{$prefix}--toolbar-search--active) .#{$prefix}--search-input {
border-bottom: none;
}
}

@include exports('toolbar') {
@if feature-flag-enabled('components-x') {
@include toolbar--x;
} @else {
@include toolbar;
}
}

0 comments on commit d28e39c

Please sign in to comment.