Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
fix(table-search): ensures expanded search opens properly (#673)
Browse files Browse the repository at this point in the history
* fix(table-search): ensures expanded search opens properly

* fix(table-search): using transition rule from carbon

* fix(table-search): removing unneeded position initial
  • Loading branch information
IgnacioBecerra authored Jul 23, 2021
1 parent 69c47b7 commit 3f1b24a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/data-table/_table-action.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright IBM Corp. 2019
// Copyright IBM Corp. 2019, 2021
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -55,10 +55,12 @@
@extend .#{$prefix}--toolbar-action;
@extend .#{$prefix}--toolbar-search-container-expandable;

flex: none;
transition: flex 175ms $carbon--standard-easing;

.#{$prefix}--search {
width: $layout-04;
width: 100%;
height: 100%;
position: initial;

.#{$prefix}--search-magnifier {
height: $layout-04;
Expand All @@ -85,6 +87,8 @@

:host(#{$prefix}-table-toolbar-search[expanded]) {
@extend .#{$prefix}--toolbar-search-container-active;

flex: auto;
}

:host(#{$prefix}-table-toolbar-search[persistent]) {
Expand Down

0 comments on commit 3f1b24a

Please sign in to comment.