-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Currently, the RectShape component in package/src/lib/components/tour-overlay/shapes/RectShape.component.tsx renders with a fixed border radius of 4px via the rx and ry props on the AnimatedRect. There is no way to customize the border radius from the SpotlightTourProvider, as it does not expose a borderRadius property.
Expected behavior:
- Ability to set a custom border radius for the rectangular spotlight shape via a prop in
SpotlightTourProvider. - The shape should wrap the target component and match the desired border radius instead of always defaulting to 4px.
Current behavior:
RectShapealways renders with a border radius of 4px, which may not match the target component's border radius.- No configuration option is available to adjust this value.
Suggested solution:
- Add a
borderRadiusproperty to theSpotlightTourProviderand/or allow it to be passed to theRectShapecomponent. - Propagate the value so that
rxandryon theAnimatedRectreflect the provided value.
Metadata
Metadata
Assignees
Labels
No labels