feat(view): Primary color에 따라 File Summary 글자 색상 동적 변경 #558
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.
Related issue
#528
Result
File Summary 차트의 배경 색상이 되는
primary color
가 변경될 때마다 글자 색상이 동적으로 변경됩니다.Work list
filter
속성을 사용하여 배경 색상이 어두울 때는white
컬러, 배경 색상이 밝을 때는black
컬러로 보입니다.Discussion
색상 값을 계산하거나 SVG 필터를 씌우는 것보다 간단한 방법이라고 생각해서 이렇게 구현했는데요,
혹시 더 좋은 방법이 있다면 편하게 제안해주세요! 🙌🙌🙌