[FE] feature: 전역 스타일에 커스텀 스크롤바 스타일 적용 #318
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 어떤 기능을 구현했나요 ?
🔥 어떻게 해결했나요 ?
::-webkit-scrollbar
는 전역 선택자라서 별도의 태그(body
,html
등) 안에 넣을 필요가 없었습니다.html
이나body
안에 넣으면 브라우저의 기본 스타일이 우선이 되어 커스텀 스크롤이 나타나지 않을 수 있습니다.margin
이나padding
을 줄 수는 없지만, 스크롤 대상인 요소에margin-right
를 줘서 스크롤바와 요소 사이에 gap을 줄 수 있습니다. (를 알아낸 쑤쑤 굿~)📝 어떤 부분에 집중해서 리뷰해야 할까요?
📚 참고 자료, 할 말
overflow-y:auto
나scroll
을 줘야 합니다. (위 코드에서도content
안에overflow-y
가 적용되어 있음)