Skip to content

Commit

Permalink
HxMultiSelect, HxSearch, HxAutosuggset - dropdown menu width changed …
Browse files Browse the repository at this point in the history
…to min-width + css vars
  • Loading branch information
crdo committed Jun 24, 2024
1 parent b37d0d1 commit d7f8265
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.dropdown-menu {
width: var(--hx-autosuggest-dropdown-menu-width);
min-width: var(--hx-autosuggest-dropdown-menu-width);
overflow: auto;
max-height: var(--hx-autosuggest-dropdown-menu-height);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

.dropdown-menu {
width: 100%;
min-width: var(--hx-multi-select-dropdown-menu-width);
overflow: auto;
max-height: var(--hx-multi-select-dropdown-menu-height);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

::deep .dropdown-menu {
width: 100%; /* override for current .btn-group, see issue #117 */
min-width: var(--hx-search-box-dropdown-menu-width); /* override for current .btn-group, see issue #117 */
}

::deep .hx-search-box-input-icon {
Expand Down
2 changes: 2 additions & 0 deletions Havit.Blazor.Components.Web.Bootstrap/wwwroot/defaults.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
--hx-multi-select-background-color: var(--bs-body-bg);
--hx-multi-select-dropdown-menu-height: 300px;
--hx-multi-select-filter-input-icon-opacity: .25;
--hx-multi-select-dropdown-menu-width: 100%;

/* TagInput */
--hx-input-tags-tag-margin: 0 .25rem 0 0;
Expand Down Expand Up @@ -196,6 +197,7 @@
--hx-search-box-item-subtitle-font-size: .75rem;
--hx-search-box-item-highlighted-background-color: var(--bs-tertiary-bg);
--hx-search-box-dropdown-menu-height: 300px;
--hx-search-box-dropdown-menu-width: 100%;
--hx-search-box-input-search-icon-color: unset;
--hx-search-box-input-clear-icon-color: unset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
Maximum height of the results dropdown menu.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-autosuggest-dropdown-menu-width" Default="100%">
Width of the results dropdown menu.
Minimal width of the results dropdown menu.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-autosuggest-input-search-icon-color" Default="unset">
Color of the search icon.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<ComponentApiDocCssVariable Name="--hx-multi-select-dropdown-menu-height" Default="300px">
Height of the dropdown menu.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-multi-select-dropdown-menu-width" Default="100%">
Minimal width of the dropdown menu.
</ComponentApiDocCssVariable>

<ComponentApiDocCssVariable Name="--hx-multi-select-background-color" Default="var(--bs-body-bg)">
Background color of the dropdown menu.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@
<ComponentApiDocCssVariable Name="--hx-search-box-input-clear-icon-color" Default="unset">
Color of the clear icon.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-search-box-dropdown-menu-width" Default="100%">
Minimal width of the results dropdown menu.
</ComponentApiDocCssVariable>
</CssVariables>
</ComponentApiDoc>

0 comments on commit d7f8265

Please sign in to comment.