Skip to content
Snippets Groups Projects
Commit d214f0ea authored by Pierre Ecarlat's avatar Pierre Ecarlat
Browse files

feat(orientation): Replace buttons in orientation

parent f8bb87bf
No related branches found
No related tags found
3 merge requests!783V3.0.0,!741making onboarding-infos-covid-2 up to date,!706feat(orientation): Replace buttons in orientation
......@@ -89,6 +89,13 @@ export const Secondary: Story = {
},
};
export const SecondarySuccess: Story = {
args: {
label: 'SecondarySuccess button',
variant: 'secondarySuccess',
},
};
export const SecondaryDelete: Story = {
args: {
label: 'SecondaryDelete button',
......
......@@ -5,7 +5,9 @@ button {
border-radius: 4px;
cursor: pointer;
border: 1px solid transparent;
transition: background-color 0.2s ease-in-out, border 0.2s ease-out;
transition:
background-color 0.2s ease-in-out,
border 0.2s ease-out;
display: flex;
align-items: center;
......@@ -124,6 +126,27 @@ button {
}
}
&.secondarySuccess {
background-color: $white;
color: $info-success;
border-color: $info-success;
&:hover {
background-color: rgba($info-success, 0.15);
color: $success-hover;
border-color: $success-hover;
}
&:disabled {
background-color: $white;
color: $grey-4;
border-color: $grey-4;
}
&:active {
background-color: rgba($success-pressed, 0.2);
color: $success-pressed;
border-color: $success-pressed;
}
}
&.secondaryDelete {
background-color: $white;
color: $red;
......
......@@ -8,6 +8,7 @@ export type ButtonTypeV3 =
| 'primaryWarning'
| 'primarySuccess'
| 'secondary'
| 'secondarySuccess'
| 'secondaryDelete'
| 'tertiary';
......
......@@ -40,30 +40,20 @@
<div class="right">
<app-svg-icon *ngIf="!isOrientation" [folder]="'ico'" [icon]="'chevronRight'" [iconClass]="'icon-24'" />
<div *ngIf="isOrientation && !isOrientationRdv">
<div
<app-v3-button
*ngIf="!isSelected"
fxLayout="row"
fxLayoutGap="6px"
class="selection-button selected"
tabindex="0"
(click)="cardAddToList(); $event.stopPropagation()"
(keyup.enter)="cardAddToList(); $event.stopPropagation()"
>
<app-svg-icon [folder]="'ico'" [icon]="'add'" [iconColor]="'black'" />
<span>Ajouter</span>
</div>
<div
[variant]="'secondary'"
[label]="'Ajouter'"
[iconName]="'add'"
(action)="cardAddToList(); $event.stopPropagation()"
/>
<app-v3-button
*ngIf="isSelected"
fxLayout="row"
fxLayoutGap="6px"
class="selection-button to-select"
tabindex="0"
(click)="cardAddToList(); $event.stopPropagation()"
(keyup.enter)="cardAddToList(); $event.stopPropagation()"
>
<app-svg-icon [folder]="'ico'" [icon]="'check'" [iconClass]="'icon-22'" [iconColor]="'white'" />
<span>Ajouté</span>
</div>
[variant]="'secondarySuccess'"
[label]="'Ajouté'"
[iconName]="'check'"
(action)="cardAddToList(); $event.stopPropagation()"
/>
</div>
<ng-container *ngIf="isOrientation && isOrientationRdv">
<app-v3-button
......
......@@ -62,27 +62,6 @@
}
}
.selection-button {
font-style: normal;
font-weight: bold;
justify-content: center;
align-items: center;
min-width: 120px;
height: 40px;
border-radius: 20px;
}
.selected {
border: solid 1px $grey-5;
background-color: $white;
color: $grey-1;
}
.to-select {
color: $white;
border-style: none;
background: #47c562;
}
.add-icon {
color: $green-1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment