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

Modify the iconColor property of the Banner component to override the color. #2575

Merged
merged 3 commits into from
Dec 23, 2024

Conversation

yangwooseong
Copy link
Collaborator

Self Checklist

  • I wrote a PR title in English and added an appropriate label to the PR.
  • I wrote the commit message in English and to follow the Conventional Commits specification.
  • I added the changeset about the changes that needed to be released. (or didn't have to)
  • I wrote or updated documentation related to the changes. (or didn't have to)
  • I wrote or updated tests related to the changes. (or didn't have to)
  • I tested the changes in various browsers. (or didn't have to)
    • Windows: Chrome, Edge, (Optional) Firefox
    • macOS: Chrome, Edge, Safari, (Optional) Firefox

Related Issue

Summary

  • 배너의 iconColor 속성을 할당해도 variant 에 의해 정해지는 색깔을 오버라이딩하지 않는 버그를 수정합니다.

Details

  • iconColor 가 없을 때만 Icon classname 을 엘리먼트에 추가하도록 했습니다.

Breaking change? (Yes/No)

  • No

References

  • None

@yangwooseong yangwooseong added the fix PR related to bug fix label Dec 20, 2024
@yangwooseong yangwooseong self-assigned this Dec 20, 2024
Copy link

channeltalk bot commented Dec 20, 2024

Copy link

changeset-bot bot commented Dec 20, 2024

🦋 Changeset detected

Latest commit: 517b02b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@channel.io/bezier-react Patch
bezier-figma-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 81.86%. Comparing base (f7503eb) to head (517b02b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ages/bezier-react/src/components/Banner/Banner.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2575      +/-   ##
==========================================
- Coverage   81.88%   81.86%   -0.03%     
==========================================
  Files         145      145              
  Lines        2887     2889       +2     
  Branches      912      914       +2     
==========================================
+ Hits         2364     2365       +1     
- Misses        493      494       +1     
  Partials       30       30              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Dec 20, 2024

Chromatic Report

🚀 Congratulations! Your build was successful!

Comment on lines 99 to 101
className={classNames({
[styles.Icon]: !iconColor,
})}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
className={classNames({
[styles.Icon]: !iconColor,
})}
className={classNames(
!iconColor && styles.Icon,
)}

문자열이 객체 생성 오버헤드가 없어서 성능 이점이 더 있는 거로 알고있어요

@yangwooseong yangwooseong merged commit 8c9b58c into channel-io:main Dec 23, 2024
7 of 9 checks passed
@yangwooseong yangwooseong deleted the WEB-6093 branch December 23, 2024 04:07
sungik-choi pushed a commit that referenced this pull request Dec 26, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @channel.io/[email protected]

### Patch Changes

- Modify the `iconColor` property of the `Banner` component to override
the color.
([#2575](#2575)) by
@yangwooseong

## [email protected]

### Patch Changes

-   Updated dependencies
    -   @channel.io/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix PR related to bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iconColor of Banner component does not override icon color of variant
2 participants