-
Notifications
You must be signed in to change notification settings - Fork 218
feat(button): add anchor button #797 #798
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
base: main
Are you sure you want to change the base?
Conversation
hey @ashley-hunter as already discussed in Discord, here is my solution for that :) If you have any sugestions, please let me know |
@MerlinMoos - Just curious, what's the reason for the separate set of directives? Could we not just determine what the host element is in a new brnButton directive and if it's attached to an anchor do the logic you have there or maybe I'm missing something |
697fffc
to
76e1585
Compare
hey @thatsamsonkid you are right, I changed it. Maybe you can have a second look. |
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.
@MerlinMoos - Awesome thanks, I think in general this LGTM!
|
||
constructor() { | ||
const element = this._elementRef.nativeElement; | ||
if (element.tagName === 'A') |
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.
This is just a nitpick/preference but I know it's technically one statement but I feel like since it spans multiple lines it's probably better to wrap it in braces
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.
Hey! Thank you! Apologies for the delay, I know I told you I would take a look a few days ago on discord but I've been travelling with no access to my laptop.
Looks great! Just a few small suggestions, but nice work! Thanks
hey @ashley-hunter I made the changes 👍 |
40a4ea9
to
eb62edd
Compare
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.
Looks good to me! Thank you!
PR Checklist
Please check if your PR fulfills the following requirements:
guidelines: https://github.com/spartan-ng/spartan/blob/main/CONTRIBUTING.md#-commit-message-guidelines
PR Type
What kind of change does this PR introduce?
Which package are you modifying?
Primitives
Others
What is the current behavior?
Currently it's not possible to to disable a hlmBtn on a element
Closes #797
What is the new behavior?
Does this PR introduce a breaking change?
Other information