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

Make sure we apply all classes to the lucide icons #1691

Merged
merged 5 commits into from
Nov 24, 2023

Conversation

ericfennis
Copy link
Member

Closes: #1681

What is the purpose of this pull request?

  • New Icon
  • Bug fix
  • New Feature
  • Documentation update
  • Other:

Description

Make sure we have consistency across all our packages when we apply classes to icon components. Some packages like lucide-react and lucide-preact removed the default classNames. What makes it hard to apply global styling on these icons is if you want to have a custom className.

I've added tests to make sure we apply all the classes.

Before Submitting

@github-actions github-actions bot added ⚛️ react package Lucide React Package ⚛️ preact package About the Preact Package labels Nov 20, 2023
@github-actions github-actions bot added 📦 dependencies Pull requests that update a dependency file 💎 vue package Lucide Vue package 🧣 svelte package About the Svelte package 🪝 solid package About the Solid package labels Nov 20, 2023
@ericfennis ericfennis merged commit 75e9724 into main Nov 24, 2023
12 checks passed
@ericfennis ericfennis deleted the fix-classes-icon-components branch November 24, 2023 12:59
@karsa-mistmere

This comment was marked as resolved.

@mikechabotcandy

This comment was marked as resolved.

realguse pushed a commit to realguse/lucide that referenced this pull request Dec 25, 2024
* Make sure all classes are applied for all packages

* Add class test to angular component

* Adjust lucide-static tests

* update snapshot

* Fix types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 dependencies Pull requests that update a dependency file ⚛️ preact package About the Preact Package ⚛️ react package Lucide React Package 🪝 solid package About the Solid package 🧣 svelte package About the Svelte package 💎 vue package Lucide Vue package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding classes via className in lucide-react removes Lucide classes instead of appending to them
3 participants