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

feat: add button component #19

Merged
merged 2 commits into from
Sep 18, 2024
Merged

feat: add button component #19

merged 2 commits into from
Sep 18, 2024

Conversation

alecarn
Copy link
Contributor

@alecarn alecarn commented Sep 5, 2024

This will allow us to standardize the button and eventually to have the possibilty to define or require tags/id on button for analytics

@alecarn alecarn requested a review from LAMM26 September 5, 2024 21:43
@alecarn alecarn self-assigned this Sep 5, 2024
- This will allow us to standardize the button  add eventually to have the possibilty to define tags/id on button for analytics
mat-icon-button
[color]="color()"
[disableRipple]="disableRipple()"
(click)="click.emit()"
Copy link
Collaborator

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>();
Copy link
Collaborator

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?

Copy link
Contributor Author

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'

@alecarn alecarn merged commit b98dd54 into next Sep 18, 2024
3 checks passed
@alecarn alecarn deleted the feature/button branch September 18, 2024 17:55
@alecarn
Copy link
Contributor Author

alecarn commented Sep 18, 2024

🎉 This PR is included in version 1.0.0-next.19 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants