Skip to content

Commit

Permalink
fix(fuselage): use label on Select (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed May 31, 2023
1 parent c32bd73 commit 5489b7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fuselage/src/components/Option/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type OptionProps = {
spacedColumn?: boolean;
variant?: 'danger' | 'success' | 'warning' | 'primary';
onClick?: (event: MouseEvent<HTMLElement>) => void;
} & AllHTMLAttributes<HTMLElement>;
} & Omit<AllHTMLAttributes<HTMLElement>, 'label'>;

const Option = memo(
forwardRef(
Expand Down
1 change: 1 addition & 0 deletions packages/fuselage/src/components/Select/Listbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function OptionAria({ item, state }: OptionProps) {
selected={isSelected}
focus={isFocused}
key={item.key}
label={item.rendered}
{...optionProps}
>
{item.rendered}
Expand Down
3 changes: 3 additions & 0 deletions packages/fuselage/src/components/Select/Select.styles.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use '../../styles/lengths.scss';
@use '../../styles/typography.scss';

.rcx-select {
Expand All @@ -6,6 +7,8 @@

align-items: center;

min-height: lengths.size(40);

// TODO move to .rcx-input-box
&__item {
@include typography.use-text-ellipsis;
Expand Down

0 comments on commit 5489b7a

Please sign in to comment.