Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ export const Ul = styled.ul<{
}
`;

export const IconArrowWrapper = styled.div<{ disabled: boolean }>`
export const IconArrowWrapper = styled.div<{ disabled: boolean; readOnly: boolean }>`
line-height: 0;
color: var(${tokens.disclosureIconColor});
cursor: ${({ disabled }) => (disabled ? 'inherit' : 'pointer')};
cursor: ${({ disabled, readOnly }) => (disabled || readOnly ? 'inherit' : 'pointer')};

.${classes.arrowInverse} {
transform: rotate(-180deg);
}

&:hover,
&:active {
color: ${({ disabled }) =>
disabled ? `var(${tokens.disclosureIconColor})` : `var(${tokens.disclosureIconColorHover})`};
color: ${({ disabled, readOnly }) =>
disabled || readOnly ? `var(${tokens.disclosureIconColor})` : `var(${tokens.disclosureIconColorHover})`};
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ export const comboboxRoot = (Root: RootProps<HTMLInputElement, Omit<ComboboxProp
contentRight={
<IconArrowWrapper
disabled={disabled}
readOnly={readOnly}
onClick={handleClickArrow}
className={classes.comboboxTargetArrow}
>
Expand Down