Byteclaw / visage

Visage design system
https://visage.design
MIT License
12 stars 3 forks source link

[Popper] - investigate if portal can have position relative #618

Open michalkvasnicak opened 4 years ago

michalkvasnicak commented 4 years ago

Sometimes, when you apply a Tooltip on an element, the Popper is shown in top left corner of viewport. Then you need to specify the container of the element as relative which is bad developer experience.

Now the Popper is wrapped in a div that belongs to Portal, could we set position relative to this portal so it's always correctly positioned?

Is really non relative position a cause in all scenarios? For example Popover doesn't have this problem but it doesn't use transform3d for positioning but top, left attributes instead.