Skip to content

Logical offsets for start/end are not intuitive #1560

@ling1726

Description

@ling1726

Note that this is not about rtl support -> that is actually awesome 🚀.

Just some examples to illustrate what I'm talking about

Popper v2: https://codesandbox.io/s/nervous-bird-xg963v?file=/src/index.js
Floating UI: https://codesandbox.io/s/sad-hellman-drowyp?file=/src/index.js:451-465

I've noticed that offset axis now can invert based on alignment. This is not very intuitive since offset now needs to be correctly set based on the the placement that is chosen, i.e. the x,y axis changes orientation.

This is also a huge change from Popper. I can't speak for all users of Popper, but for Microsoft, this will be a very painful breaking change since large applications like Teams will need to to completely reevaluate all the offsets in the app.

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