Select: Fix minor layout shift when opening/closing the menu (#104476)

fix width of magnifying glass causing layout shift
This commit is contained in:
Ashley Harrison
2025-04-24 17:36:12 +01:00
committed by GitHub
parent 040a82c815
commit 5a10e3b43e

View File

@ -5,6 +5,6 @@ import { Icon } from '../Icon/Icon';
export function DropdownIndicator({ selectProps }: DropdownIndicatorProps) {
const isOpen = selectProps.menuIsOpen;
const icon = isOpen ? 'search' : 'angle-down';
const size = isOpen ? 'sm' : 'md';
const size = 'md';
return <Icon name={icon} size={size} />;
}