Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Poll] Ban the use of z-index #47

Open
louischan-oursky opened this issue Dec 6, 2023 · 1 comment
Open

[Poll] Ban the use of z-index #47

louischan-oursky opened this issue Dec 6, 2023 · 1 comment

Comments

@louischan-oursky
Copy link
Collaborator

louischan-oursky commented Dec 6, 2023

Feel free to let your comments below

@louischan-oursky louischan-oursky changed the title Ban the use of z-index [Poll] Ban the use of z-index Dec 6, 2023
@kiootic
Copy link
Contributor

kiootic commented Feb 1, 2024

I don't think it is needed. There are 2 main reasons to use z-index:

  • Manage the draw order of overlapping sibling elements: we have isolation to help localize the z-index.
  • Floating elements (e.g. popups, tooltip): should lift to near-root elements (e.g. body) anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@kiootic @louischan-oursky and others