-
Notifications
You must be signed in to change notification settings - Fork 174
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
refactor(tooltip): migrate to signals #430 #503
refactor(tooltip): migrate to signals #430 #503
Conversation
@elite-benni @goetzrobin I changed the naming as discussed in the other PR here as well |
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 don't like using the mutable + state pattern when it is not needed.
I think providing the defaultOptions via Injector like it is done with the HlmButtonDirective, is more readable and declarative.
I added a PR to your branch where I added some of the changes and we can talk about it.
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 left some comments. I think it's just some minor naming stuff and one more philosophical question about introducing a new helper in core when we use it in only a single spot. @elite-benni I trust your review on this as you've already spent some time looking at this code also!
Thanks so much for both of your guys work on this!
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.
One small Question. Added as comment.
The rest looks good to me.
@MerlinMoos you mentioned refactoring the naming of the content, I added a comment, I don't think it is necessary to refactor it.
PR Checklist
Please check if your PR fulfills the following requirements:
guidelines: https://github.com/goetzrobin/spartan/blob/main/CONTRIBUTING.md#-commit-message-guidelines
PR Type
What kind of change does this PR introduce?
Which package are you modifying?
What is the current behavior?
Closes #430
What is the new behavior?
Does this PR introduce a breaking change?
Other information