z-index 기준 세우기 #884
suhyun113
started this conversation in
Best Practices
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
❓이슈
💡 논의하고 싶은 내용
1) 현재 코드에 의미없는 z-index 사용 존재
- position 속성 없이 사용되고 있는 경우
- 겹치는 문제가 발생하지 않는 경우 등
=> z-index 사용을 필요한 경우가 아니라면 지양하는 것이 좋을 것 같습니다.
2) z-index 상수화
=> 당장 사용되고 있는 요소를 기준으로 z-index를 상수화했습니다.
=> 기준을 정하고 사용하면, 겹치는 문제를 방지할 수 있을 것 같습니다.
💬 논의하고 싶은 내용
All reactions