Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Dec 2, 2024
1 parent 1f67cbe commit c088c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/src/atoms/ListItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type ListItemType =
| 'noActive'
| 'success'
| 'warning'
| 'disabled'
| 'unavailable'

interface ListItemProps extends StyleProps {
/** ListItem state type */
Expand Down Expand Up @@ -41,7 +41,7 @@ const LISTITEM_PROPS_BY_TYPE: Record<
warning: {
backgroundColor: COLORS.yellow35,
},
disabled: {
unavailable: {
backgroundColor: COLORS.grey20,
color: COLORS.grey40,
},
Expand All @@ -63,7 +63,7 @@ export function ListItem(props: ListItemProps): JSX.Element {

const LIST_ITEM_STYLE = css`
background-color: ${listItemProps.backgroundColor};
color: ${listItemProps.color};
color: ${listItemProps.color ?? COLORS.black90};
width: 100%;
height: ${FLEX_MAX_CONTENT};
border-radius: ${BORDERS.borderRadius4};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function CheckboxExpandStepFormField(
const [targetProps, tooltipProps] = useHoverTooltip()
return (
<>
<ListItem type={disabled ? 'disabled' : 'noActive'}>
<ListItem type={disabled ? 'unavailable' : 'noActive'}>
<Flex
padding={SPACING.spacing12}
width="100%"
Expand Down

0 comments on commit c088c62

Please sign in to comment.