Fix: visual glitch with autocomplete component (#20611)
* fix: add display:block style to span and correct minor typo * refactor: change posisiton and max-heigh on scss * refactor: adapt message with conditional --------- Co-authored-by: Mac Siri <mac@forem.com>
This commit is contained in:
parent
ed584ff5dc
commit
bb6954bfb6
2 changed files with 5 additions and 5 deletions
|
|
@ -83,8 +83,8 @@
|
|||
}
|
||||
|
||||
.c-autocomplete--multi__popover {
|
||||
position: absolute;
|
||||
max-height: 500px;
|
||||
position: relative;
|
||||
max-height: 200px;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
padding: var(--su-1);
|
||||
|
|
|
|||
|
|
@ -649,9 +649,9 @@ export const MultiSelectAutocomplete = ({
|
|||
</ul>
|
||||
</div>
|
||||
{showMaxSelectionsReached ? (
|
||||
<div className="c-autocomplete--multi__popover">
|
||||
<span className="p-3">Only {maxSelections} selections allowed</span>
|
||||
</div>
|
||||
<span className="p-3">
|
||||
{`Only ${maxSelections} ${maxSelections == 1 ? 'selection' : 'selections'} allowed`}
|
||||
</span>
|
||||
) : null}
|
||||
{suggestions.length > 0 && allowSelections ? (
|
||||
<div className="c-autocomplete--multi__popover" ref={popoverRef}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue