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

Issue 372 - Icon color not updating with theme color #452

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

igloo12
Copy link

@igloo12 igloo12 commented Jun 21, 2024

Addresses Issue #372

Screenshot 2024-06-21 at 4 55 36 PM
Screenshot 2024-06-21 at 4 54 35 PM

  • Breaking change? (if so, please describe the impact and migration path for existing application instances)

What changes did you make? (Give an overview)
Updated the icon svgs to use the theme
Is there anything you'd like reviewers to focus on?

How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)

  • No need to
  • Manually (please, describe, if necessary)
  • Unit checks
  • Integration checks
  • Covered by existing automation

Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (e.g. ENVIRONMENT VARIABLES)
  • My changes generate no new warnings (e.g. Sonar is happy)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

Check out Contributing and Code of Conduct

A picture of a cute animal (not mandatory but encouraged)

Red-Panda-Image-for-Endangered-Excursion-scaled

@igloo12 igloo12 requested a review from a team as a code owner June 21, 2024 23:58
@kapybro kapybro bot added status/triage Issues pending maintainers triage status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Jun 21, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hi igloo12! 👋

Welcome, and thank you for opening your first PR in the repo!

Please wait for triaging by our maintainers.

Please take a look at our contributing guide.

Copy link
Member

@Nilumilak Nilumilak left a comment

Choose a reason for hiding this comment

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

I think it would be better to connect global theme to the colors instead of making the svg transparent

@igloo12
Copy link
Author

igloo12 commented Jun 22, 2024

I think it would be better to connect global theme to the colors instead of making the svg transparent

Isn't that what the styled() method does? I copied it from the edit icon. The styled() sets the fill color of the svg.

@Nilumilak
Copy link
Member

I think it would be better to connect global theme to the colors instead of making the svg transparent

Isn't that what the styled() method does? I copied it from the edit icon. The styled() sets the fill color of the svg.

edit icon uses the global theme for filling the svg

fill={theme.icons.editIcon.normal}

@igloo12
Copy link
Author

igloo12 commented Jun 23, 2024

I think it would be better to connect global theme to the colors instead of making the svg transparent

Isn't that what the styled() method does? I copied it from the edit icon. The styled() sets the fill color of the svg.

edit icon uses the global theme for filling the svg

fill={theme.icons.editIcon.normal}

I saw this, but I think it is being overwritten here in Button.styled.ts

  & svg {
    margin-right: 4px;
    fill: ${({ theme, disabled, buttonType }) =>
      disabled
        ? theme.button[buttonType].color.disabled
        : theme.button[buttonType].color.normal};
  }

Setting it to red has no effect.
Screenshot 2024-06-23 at 10 19 08 AM

@Haarolean Haarolean requested a review from Mgrdich June 24, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants