Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/components/experimental/ComboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ const defaultAriaStrings = {
};

const StyledPopover = styled(Popover)`
box-sizing: border-box;
overflow: auto;
width: var(--trigger-width);
`;

interface ComboBoxFieldProps extends Pick<FieldProps, 'label' | 'description' | 'errorMessage' | 'leadingIcon'> {
Expand Down
1 change: 1 addition & 0 deletions src/components/experimental/ListBox/ListBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { getSemanticValue } from '../../../essentials/experimental';

const StyledListBoxItem = styled(BaseListBoxItem)`
position: relative;
display: block;
padding: ${get('space.3')} ${get('space.4')};
border-radius: ${get('radii.4')};
color: ${getSemanticValue('on-surface')};
Expand Down
6 changes: 6 additions & 0 deletions src/components/experimental/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ const StyledPopover = styled(BasePopover)`
box-shadow: 0 2px 4px -1px hsla(0, 0%, 0%, 0.2), 0 1px 10px 0 hsla(0, 0%, 0%, 0.12),
0 4px 5px 0 hsla(0, 0%, 0%, 0.14);
border-radius: ${get('radii.4')};

[data-trigger='Select'],
[data-trigger='ComboBox'] {
box-sizing: border-box;
width: var(--trigger-width);
}
`;

const FocusTrap = styled(Dialog)`
Expand Down
2 changes: 0 additions & 2 deletions src/components/experimental/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ import { VisuallyHidden } from '../../VisuallyHidden/VisuallyHidden';
import { fieldStyles, fieldTextStyles } from '../Field/Field';

const StyledPopover = styled(Popover)`
box-sizing: border-box;
overflow: auto;
width: var(--trigger-width);
`;

const FakeButton = styled(FakeInput)`
Expand Down