Skip to content

Conversation

asagot-ansa
Copy link
Collaborator

No description provided.

tags: ['autodocs'],
argTypes: {
size: { control: 'select', options: ['small', 'medium', 'large'] },
type: { options: ['primary', 'seondary', 'destructive'] },
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo secondary

argTypes: {
size: { control: 'select', options: ['small', 'medium', 'large'] },
type: { options: ['primary', 'seondary', 'destructive'] },
backgroundColor: { control: 'color' },
Copy link
Collaborator

Choose a reason for hiding this comment

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

supprimer background color et tous les arg qui sont encore dans la story mais pas ds le composant

</template>

<script lang="ts" setup>
<script lang="ts"setup>
Copy link
Collaborator

Choose a reason for hiding this comment

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

remettre espace entre ts" et setup

* type of the button
*/
primary?: boolean,
type ?: 'primary'| 'secondary' | 'destructive',
Copy link
Collaborator

Choose a reason for hiding this comment

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

espace en trop

label: string,
/**
* primary or secondary button
* type of the button
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* type of the button
* button type*


.storybook-button--secondary:hover {
border: 2px solid var(--color-button-border-secondary-hover);
box-shadow: 2px 4px 7px 2px rgb(from var(--color-button-shadow-primary) r g b / 30%);
Copy link
Collaborator

Choose a reason for hiding this comment

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

ne pas oublier de creer variable : -color-button-shadow-secondary

.storybook-button--destructive {
background-color:var(--color-button-background-destructive);
border: 1px solid var(--color-button-border-destructive);
color: #FFF;
Copy link
Collaborator

Choose a reason for hiding this comment

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

variabiliser la color

background-color: var(--color-button-background-destructive);
border-color: var(--color-button-background-destructive);
box-shadow: 2px 4px 7px 2px var(--color-button-shadow-destructive);
/*remplacer par des tokens de couleurs pour la shadow ou pas ?*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

enlever commentaire

--color-button-shadow-secondary-active: var(--color-navy-500);


--color-button-text-destructive:#FFF;
Copy link
Collaborator

Choose a reason for hiding this comment

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

rempacer par white

@jordandullier jordandullier deleted the component/creation-bouton branch September 27, 2024 13:45
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.

3 participants