Skip to content

Commit

Permalink
fix(Select): update menu styles
Browse files Browse the repository at this point in the history
Ref  UXD-1651
  • Loading branch information
ajkl2533 committed Oct 11, 2024
1 parent 4e4e415 commit 8ae3817
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 18 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 19 additions & 18 deletions src/components/forms/Select/Select.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ export const selectStyles: (
boxShadow: 'var(--sscds-shadow-1x)',
marginBottom: 'var(--sscds-space-1x)',
marginTop: 'var(--sscds-space-1x)',
paddingTop: 'var(--sscds-space-2x)',
paddingBottom: 'var(--sscds-space-2x)',
padding: 'var(--sscds-space-2x)',
}),
menuList: (styles) => ({
...styles,
Expand All @@ -229,15 +228,19 @@ export const selectStyles: (
fontSize: 'var(--sscds-font-size-body-md)',
lineHeight: 'var(--sscds-font-lineheight-body-md)',
padding: menuItemPadding,
transition: 'var(--sscds-action-transition)',
':active': {
...styles[':active'],
backgroundColor: 'var(--sscds-color-background-selectable-active)',
},
borderRadius: 'var(--sscds-radii-default)',
}),
group: (styles) => ({
...styles,
padding: 0,
marginTop: 'var(--sscds-space-2x)',
':not(:first-child)': {
marginTop: 'var(--sscds-space-2x)',
},
}),
groupHeading: (styles) => ({
...styles,
Expand Down Expand Up @@ -328,7 +331,7 @@ const ActionsMenu = styled.div`

const SelectActionButton = styled(Button)`
justify-content: flex-start;
border-radius: 0;
border-radius: var(--sscds-radii-default);
`;

const getActionProps: (
Expand Down Expand Up @@ -458,20 +461,18 @@ export const Option: ComponentType<OptionProps<OptionType, boolean>> = (
}

return (
<div>
<components.Option {...props}>
<Inline gap={SpaceSizes.sm}>
<StyledCheckbox
checkboxId={`select-${label}`}
checked={isSelected}
isDisabled={isDisabled}
label={children}
name={label}
readOnly
/>
</Inline>
</components.Option>
</div>
<components.Option {...props}>
<Inline gap={SpaceSizes.sm}>
<StyledCheckbox
checkboxId={`select-${label}`}
checked={isSelected}
isDisabled={isDisabled}
label={children}
name={label}
readOnly
/>
</Inline>
</components.Option>
);
};

Expand Down

0 comments on commit 8ae3817

Please sign in to comment.