Skip to content

Commit

Permalink
fix(select a11y): give loading indicator space when no options
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Nov 10, 2024
1 parent 2283155 commit 3dae9aa
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions components/select/src/single-select-a11y/menu/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ export function Menu({

{hasNoFilterMatch && <NoMatch>{noMatchText}</NoMatch>}

<div className="listbox-container">
<div
className={cx('listbox-container', {
'no-options': !options.length,
})}
>
<div className="listbox-wrapper">
<MenuOptionsList
ref={listBoxRef}
Expand Down Expand Up @@ -142,9 +146,6 @@ export function Menu({
box-sizing: content-box;
}
.filter-container {
}
.listbox-container {
position: relative;
flex-grow: 1;
Expand All @@ -153,6 +154,12 @@ export function Menu({
overflow: hidden;
}
.no-options {
// @TODO: What should this value be?
// Ask Joe
height: 50px;
}
.listbox-wrapper {
overflow: auto;
flex-grow: 1;
Expand Down

0 comments on commit 3dae9aa

Please sign in to comment.