Skip to content

Commit 20612f9

Browse files
committed
Make the disabled but selected item highlighted on hover
1 parent 13fe49c commit 20612f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/SelectionList/ListItem/BaseListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function BaseListItem<TItem extends ListItem>({
199199
isNested
200200
hoverDimmingValue={1}
201201
pressDimmingValue={item.isInteractive === false ? 1 : variables.pressDimValue}
202-
hoverStyle={!shouldDisableHoverStyle ? [!item.isDisabled && item.isInteractive !== false && styles.hoveredComponentBG, hoverStyle] : undefined}
202+
hoverStyle={!shouldDisableHoverStyle ? [(!item.isDisabled || item.isSelected) && item.isInteractive !== false && styles.hoveredComponentBG, hoverStyle] : undefined}
203203
dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true, [CONST.INNER_BOX_SHADOW_ELEMENT]: shouldShowBlueBorderOnFocus}}
204204
onMouseDown={(e) => {
205205
if ((e?.target as HTMLElement)?.tagName === CONST.ELEMENT_NAME.INPUT) {

0 commit comments

Comments
 (0)