From c39173f634db7e9ac93018077b37f1f3a2fb7a78 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Mon, 27 Jan 2020 15:45:02 -0800 Subject: [PATCH] fix(datatable): add padding so search clear button doesn't obstruct text (#5145) --- .../data-table/_data-table-action.scss | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/packages/components/src/components/data-table/_data-table-action.scss b/packages/components/src/components/data-table/_data-table-action.scss index 9d7746b94372..baa510c927c4 100644 --- a/packages/components/src/components/data-table/_data-table-action.scss +++ b/packages/components/src/components/data-table/_data-table-action.scss @@ -123,6 +123,12 @@ } } + .#{$prefix}--toolbar-search-container-expandable + .#{$prefix}--search + .#{$prefix}--search-close:focus::before { + background-color: $focus; + } + //------------------------------------------------- //ACTIVE SEARCH - DEFAULT TOOLBAR //------------------------------------------------- @@ -141,7 +147,7 @@ .#{$prefix}--toolbar-search-container-active .#{$prefix}--search .#{$prefix}--search-input { - padding-left: $spacing-09; + padding: 0 $spacing-09; visibility: inherit; } @@ -197,6 +203,11 @@ background-color: transparent; } + .#{$prefix}--toolbar-search-container-persistent + .#{$prefix}--search-close::before { + display: none; + } + //------------------------------------------------- //TOOLBAR BUTTONS //------------------------------------------------- @@ -296,7 +307,7 @@ .#{$prefix}--search .#{$prefix}--search-input { height: $layout-04; - padding-left: $spacing-09; + padding: 0 $spacing-09; border: none; } @@ -513,7 +524,7 @@ .#{$prefix}--toolbar-search-container-expandable .#{$prefix}--search .#{$prefix}--search-input { - padding-left: $spacing-xl; + padding: 0 $spacing-09; } //active