Skip to content

Commit 0c39827

Browse files
committed
Add boxShadow to the tooltip
1 parent 5ed032a commit 0c39827

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ts/features/tour/components/TourOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { TourItemMeasurement } from "../types";
2020
import { useTourContext } from "./TourProvider";
2121
import { TourTooltip } from "./TourTooltip";
2222

23-
const OVERLAY_COLOR = "rgba(0,0,0,0.7)";
23+
const OVERLAY_COLOR = "rgba(0,0,0,0.5)";
2424
const CUTOUT_BORDER_RADIUS = 8;
2525
const CUTOUT_PADDING = 4;
2626
const ANIMATION_DURATION = 300;

ts/features/tour/components/TourTooltip.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,15 @@ const styles = StyleSheet.create({
162162
tooltip: {
163163
borderRadius: BORDER_RADIUS,
164164
borderCurve: "continuous",
165-
padding: 16
165+
padding: 16,
166+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)"
166167
},
167168
arrow: {
168169
position: "absolute",
169170
width: ARROW_SIZE,
170171
height: ARROW_SIZE,
171172
transform: [{ rotate: "45deg" }],
172-
zIndex: -1
173+
zIndex: 2
173174
},
174175
buttonsRow: {
175176
flexDirection: "row",

0 commit comments

Comments
 (0)