Y
Hacker News
new
|
ask
|
show
|
jobs
by
silverwind
562 days ago
The worst thing about `<dialog>` is that modal ones are placed in the CSS "top layer" which obstructs portalled content like tooltips and dropdowns.
1 comments
plonq
562 days ago
Once we can use popover and anchor positioning, tooltips and drop downs can also be in the top layer. I can’t wait
link
8n4vidtmkvmk
561 days ago
This was never an issue for me in React. The top layer seems unnecessary. Just put your portal or fancy code such that it puts all those popovers at the end. If you order your DOM correctly, you almost never have to touch the z-index.
link
plonq
555 days ago
The point is it will be possible without a framework
link
8n4vidtmkvmk
553 days ago
`document.body.appendChild(newElement);` is pretty easy too.
link