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

Component/creation-bouton #21

Closed
wants to merge 12 commits into from
Closed

Conversation

asagot-ansa
Copy link
Collaborator

No description provided.

@@ -10,6 +10,7 @@ const meta = {
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

@@ -10,6 +10,7 @@ const meta = {
tags: ['autodocs'],
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

*/
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

/**
* The label of the button
*/
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