Skip to content

parent position fixed will interfere the spotlight position #1161

@roywang-lab

Description

@roywang-lab

🐛 Bug Report

A clear and concise description of what the bug is.

I have 4 items of a list, and want to render them as tabs, their grandparent container's position is fixed, because of the fixed attribute, the spotlight for each of the tab's position will be wrong, and while the spotlight's position is correct after I modified their grandparents' position.

To Reproduce

Steps to reproduce the behavior:
set the grandparent position fixed, also change its top to some value.

Expected behavior

A clear and concise description of what you expected to happen.
Even their grandparents position is fixed, the spotlight will still set the right position.

Link to repl or repo (highly encouraged)

Please provide a https://codesandbox.io/ demo or similar.

Issues without a reproduction link are likely to stall.

Run npx envinfo --system --binaries --npmPackages react-joyride

Paste the results here:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions