-
Notifications
You must be signed in to change notification settings - Fork 932
fix(Button/Link): merge active-class / inactive-class with app config
#4446
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(Button/Link): merge active-class / inactive-class with app config
#4446
Conversation
β¦iants - Fix issue where activeClass and inactiveClass props were not being combined with app.config variants - Ensure both app.config classes and component props are applied together - Maintain backward compatibility with existing configurations
commit: |
|
I updated the description, i mentionned the bad issue, this fix #4279 Main issue here was anything in variants in app.config doest not have any effect, for example doesn't work in current version 3.2.0 |
Im not sure this wil fix #4279 btw, but it fix issues with |
|
It doesn't seem related to #4279. Do you have a reproduction of what's not working? |
Hello my friend, there is a repro : https://stackblitz.com/edit/sb1-wmy9hv9o In app.config.ts
-> don't work In the screen below, "test" should be red right ? Following the doc |
active-class / inactive-class with app config
active-class / inactive-class with app configactive-class / inactive-class with app config
benjamincanac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated your code to keep using defu which keep it simple and applied the same logic to the Button component. Let me know what you think!
Good job for thinking of the Button, I didn't think to check the other components. MergeClasses function makes sense this way. Ok for defu, I hesitated to remove it, I admit. It'll make a great fix! Bonne journΓ©e, Γ plus ! |


β Type of change
π Description
π Checklist