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

Ajoute ButtonGroup au design system #3207

Merged
merged 3 commits into from
May 14, 2024
Merged

Conversation

cparthur
Copy link
Contributor

@cparthur cparthur commented May 3, 2024

No description provided.

: {
borderTopLeftRadius: 0,
borderBottomLeftRadius: 0,
borderLeft: 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ici si aucun activeButtonId n'est renseigné, il n'y a pas de séparation entre les deux boutons

{...props}
size={size}
variant={activeButtonId === props.id ? 'primary' : 'outlined'}
style={getButtonStyles(index)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si un des boutons est disabled, ça peut impacter le style de bordure du bouton d'à côté


type Props = {
/** Listes de boutons à afficher avec leurs propriétés */
buttons: ButtonProps[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'aurais plutôt utilisé DefaultButtonProps pour éviter l'utilisation de liens sur les groupes de boutons

@cparthur cparthur merged commit 42b7970 into upcoming_develop May 14, 2024
16 of 21 checks passed
@cparthur cparthur deleted the ds-button-group branch May 14, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants