-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add button component #19
Conversation
285df6a
to
abacd8e
Compare
- This will allow us to standardize the button add eventually to have the possibilty to define tags/id on button for analytics
abacd8e
to
1759d3d
Compare
mat-icon-button | ||
[color]="color()" | ||
[disableRipple]="disableRipple()" | ||
(click)="click.emit()" |
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.
ici c'est click.emit()
, pour les autres c'est handleClick()
|
||
@Directive() | ||
class ButtonBase { | ||
color = input<ButtonColor>(); |
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.
Est-ce que color
devrait avoir une valeur par défaut, par exemple primary
ou être required
?
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.
Je ne peux pas répondre à ta question, on verra selon les besoins. Tu pourra le mettre si tu vois que c'est un besoin de toujours être à 'primary'
🎉 This PR is included in version 1.0.0-next.19 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This will allow us to standardize the button and eventually to have the possibilty to define or require tags/id on button for analytics