Skip to content

Commit a611c16

Browse files
authored
Merge pull request #88076 from software-mansion-labs/jnowakow/fix-undelete-button-background-in-selection-mode
fix undelete button background in selection mode
2 parents 5621a17 + 58929ce commit a611c16

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/components/Search/SearchList/ListItem/ActionCell

src/components/Search/SearchList/ListItem/ActionCell/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ function ActionCell({
8080

8181
const text = translate(actionTranslationsMap[action]);
8282

83+
const buttonInnerStyles = isSelected && action === CONST.SEARCH.ACTION_TYPES.UNDELETE ? styles.buttonDefaultSelected : {};
84+
8385
return (
8486
<Button
8587
text={text}
@@ -91,6 +93,7 @@ function ActionCell({
9193
success={action !== CONST.SEARCH.ACTION_TYPES.UNDELETE}
9294
isDisabled={isOffline || shouldDisablePointerEvents}
9395
shouldStayNormalOnDisable={shouldDisablePointerEvents}
96+
innerStyles={buttonInnerStyles}
9497
isNested
9598
sentryLabel={CONST.SENTRY_LABEL.SEARCH.ACTION_CELL_ACTION}
9699
/>

0 commit comments

Comments
 (0)