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

fix: [NV-2841] Fixed issue of channel icons in light theme due to duplicate id in SVG #4358

Merged
merged 5 commits into from
Nov 30, 2023

Conversation

Gaurav0493
Copy link
Contributor

What change does this PR introduce?

This PR fixes the issue with channel icon color in light theme in the workflows.

This issue was due to duplicate id of linearGradient in SVGs of channel images.
When a channel is added in the workflow the duplicate id of the linearGradient gets added in the DOM due to which the color of the image defaults to white and i.e. the image is not visible in the white theme.

To fix this issue, I have used timestamp as a unique Id for these linearGradient. This will allow having multiple channel icons in the DOM.

Why was this change needed?

The changes fix the issue with channel icons in the light theme.

For example: When I add an email channel into the workflow ( in light theme) and then hover on the email channel from the actions menu to add the email channel again into the workflow the email channel disappears.

With this PR the above issue is fixed.

Closes #4260

Fix Screenshots

Light Mode
Screenshot 2023-10-03 at 6 02 48 PM
Screenshot 2023-10-03 at 6 03 07 PM

Dark Mode
Screenshot 2023-10-03 at 6 54 13 PM

===============================================================

This PR also fixes the issue with the color of filter icon on the Configure page for the channel in light theme.

Before fix
Screenshot 2023-10-03 at 6 04 39 PM
After fix
Screenshot 2023-10-03 at 6 05 02 PM

@github-actions github-actions bot added the stale Pull Request that needs to be reviewed label Oct 18, 2023
@scopsy
Copy link
Contributor

scopsy commented Nov 6, 2023

@Gaurav0493 there are some merge conflicts, could you please take a look at those?

@github-actions github-actions bot removed the stale Pull Request that needs to be reviewed label Nov 6, 2023
@github-actions github-actions bot added the stale Pull Request that needs to be reviewed label Nov 20, 2023
@LetItRock
Copy link
Contributor

hey @Gaurav0493 👋 could you please give me the rights to push the changes to your fork? we would love to merge this PR 🙏

@Gaurav0493
Copy link
Contributor Author

hey @Gaurav0493 👋 could you please give me the rights to push the changes to your fork? we would love to merge this PR 🙏

Hey @LetItRock I have sent invite to you for my fork.

@github-actions github-actions bot added @novu/design-system and removed stale Pull Request that needs to be reviewed labels Nov 27, 2023
@LetItRock
Copy link
Contributor

hey @Gaurav0493 👋 could you please give me the rights to push the changes to your fork? we would love to merge this PR 🙏

Hey @LetItRock I have sent invite to you for my fork.

thank you! 🙌

@LetItRock LetItRock merged commit 76cab07 into novuhq:next Nov 30, 2023
18 of 20 checks passed
@LetItRock
Copy link
Contributor

@Gaurav0493 thank you! 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NV-2841] Workflow Editor - channels icons are white in light theme
3 participants