MarkerTimeline to show a more obvious selected state

Summary:
When a marker is selected, it was difficult to notice any style differences.

This changes makes it more obvious when a marker is selected.

Reviewed By: antonk52, aigoncharov

Differential Revision: D44628828

fbshipit-source-id: c4634338e04969f3d973137ad861cb999b28c139
This commit is contained in:
Lorenzo Blasa
2023-04-04 04:05:15 -07:00
committed by Facebook GitHub Bot
parent d127ac76ac
commit b0a8dbca01

View File

@@ -66,8 +66,7 @@ const Point = styled(Layout.Horizontal)<{
alignItems: 'flex-start',
lineHeight: '16px',
':hover': {
background: theme.selectionBackgroundColor,
zIndex: 2,
backgroundColor: theme.selectionBackgroundColor,
'> span': {
whiteSpace: 'initial',
},
@@ -91,7 +90,7 @@ const Point = styled(Layout.Horizontal)<{
marginTop: 3,
zIndex: 3,
boxShadow: props.selected
? `0 0 0 2px ${theme.backgroundTransparentHover}`
? `0 0 0 4px ${theme.selectionBackgroundColor}`
: undefined,
},
'::after': {