From 3956b754ae51eb5ad2df818c74dd83b7ed703a07 Mon Sep 17 00:00:00 2001 From: Aziz <119948730+aziz-access@users.noreply.github.com> Date: Wed, 17 Jan 2024 22:48:59 +0100 Subject: [PATCH] style(geo): fix search bar floating label (#1562) * fix(geo): search input style * fix(geo): fix floating label * delete some style * fix(geo/search-bar): keep the lib agnostic on the search-bar density * fix(geo/search-bar): forward theming mixin --------- Co-authored-by: Alexandre Caron --- packages/geo/package.json | 1 + packages/geo/src/_index.scss | 2 ++ .../src/lib/search/search-bar/search-bar.theming.scss | 9 --------- projects/demo/src/app/geo/search/search.component.html | 3 ++- 4 files changed, 5 insertions(+), 10 deletions(-) create mode 100644 packages/geo/src/_index.scss diff --git a/packages/geo/package.json b/packages/geo/package.json index d2c3d81816..78e5d41671 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -24,6 +24,7 @@ }, "exports": { ".": { + "sass": "./src/_index.scss", "import": "./src/public_api.ts" }, "./style": { diff --git a/packages/geo/src/_index.scss b/packages/geo/src/_index.scss new file mode 100644 index 0000000000..eabd4896d4 --- /dev/null +++ b/packages/geo/src/_index.scss @@ -0,0 +1,2 @@ +@forward './lib/search/search-bar/search-bar.theming.scss' as search-bar-* show search-bar-color, + search-bar-density, search-bar-theme; diff --git a/packages/geo/src/lib/search/search-bar/search-bar.theming.scss b/packages/geo/src/lib/search/search-bar/search-bar.theming.scss index 6cd034522f..1ca4c7afbc 100644 --- a/packages/geo/src/lib/search/search-bar/search-bar.theming.scss +++ b/packages/geo/src/lib/search/search-bar/search-bar.theming.scss @@ -26,15 +26,6 @@ } @mixin density($theme) { - $density: mat.get-density-config($theme); - - $theme: map.merge( - $theme, - ( - density: $density - 2 - ) - ); - igo-search-bar { @include mat.form-field-density($theme); @include mat.icon-button-density($theme); diff --git a/projects/demo/src/app/geo/search/search.component.html b/projects/demo/src/app/geo/search/search.component.html index bb7505e002..0c7ed27567 100644 --- a/projects/demo/src/app/geo/search/search.component.html +++ b/projects/demo/src/app/geo/search/search.component.html @@ -5,7 +5,8 @@ > - Pointer activated: {{ igoSearchPointerSummaryEnabled }} (F2 activate/deactivate the pointer location). + Pointer activated: {{ igoSearchPointerSummaryEnabled }} (F2 + activate/deactivate the pointer location).