Skip to content

Commit

Permalink
style(geo): fix search bar floating label (#1562)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
aziz-access and alecarn authored Jan 17, 2024
1 parent b714937 commit 3956b75
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"exports": {
".": {
"sass": "./src/_index.scss",
"import": "./src/public_api.ts"
},
"./style": {
Expand Down
2 changes: 2 additions & 0 deletions packages/geo/src/_index.scss
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion projects/demo/src/app/geo/search/search.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
>
<app-example-viewer codeFolder="geo/search" configFolder="environments">
<span *ngIf="!isTouchScreen" title="Details">
Pointer activated: {{ igoSearchPointerSummaryEnabled }} (F2 activate/deactivate the pointer location).
Pointer activated: {{ igoSearchPointerSummaryEnabled }} (F2
activate/deactivate the pointer location).
</span>
<igo-map-browser
#mapBrowser
Expand Down

0 comments on commit 3956b75

Please sign in to comment.