Skip to content

Add borderRadius support to RectShape via SpotlightTourProvider #195

@AmbrogiJosue

Description

@AmbrogiJosue

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:

  • RectShape always 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 borderRadius property to the SpotlightTourProvider and/or allow it to be passed to the RectShape component.
  • Propagate the value so that rx and ry on the AnimatedRect reflect the provided value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions