Skip to content
Snippets Groups Projects
Commit 1aded730 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

feat(ui): add grey tags

parent 7d57de43
No related branches found
No related tags found
3 merge requests!783V3.0.0,!741making onboarding-infos-covid-2 up to date,!717feat(ui): add grey tags
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
*ngFor="let filter of searchService.checkedFilterList" *ngFor="let filter of searchService.checkedFilterList"
[label]="filter" [label]="filter"
[size]="'small'" [size]="'small'"
[color]="'black'" [color]="'grey'"
[iconName]="'cross'" [iconName]="'cross'"
[iconPosition]="'right'" [iconPosition]="'right'"
[clickable]="true" [clickable]="true"
......
...@@ -27,14 +27,6 @@ button { ...@@ -27,14 +27,6 @@ button {
background-color: $white; background-color: $white;
border-color: $grey-5; border-color: $grey-5;
color: $grey-1; color: $grey-1;
&.selected {
background-color: $grey-1;
border-color: $grey-1;
color: $white;
&:active {
background-color: $grey-2;
}
}
&:hover { &:hover {
border-color: $grey-3; border-color: $grey-3;
} }
...@@ -52,6 +44,31 @@ button { ...@@ -52,6 +44,31 @@ button {
} }
} }
&.grey {
background-color: $grey-7;
border-color: $grey-7;
color: $grey-3;
&:hover {
background-color: $grey-5;
border-color: $grey-5;
color: $grey-1;
}
&:focus-visible {
outline-offset: 2px;
outline: 2px solid $blue-focus;
}
&:disabled {
background-color: $grey-9;
border-color: $grey-9;
color: $grey-5;
}
&:active {
background-color: $grey-7;
border-color: $grey-3;
color: $grey-3;
}
}
&.red { &.red {
color: $red-darker; color: $red-darker;
background-color: $red-light; background-color: $red-light;
......
...@@ -14,7 +14,7 @@ export class TagItemV3Component { ...@@ -14,7 +14,7 @@ export class TagItemV3Component {
@Input() size?: 'small' | 'medium' = 'medium'; @Input() size?: 'small' | 'medium' = 'medium';
/** What color should the tag be ? */ /** What color should the tag be ? */
@Input() color?: 'white' | 'black' | 'red' = 'white'; @Input() color?: 'white' | 'black' | 'red' | 'grey' = 'white';
/** Should the button be clickable ? */ /** Should the button be clickable ? */
@Input() clickable = false; @Input() clickable = false;
......
...@@ -26,7 +26,7 @@ export const Small: Story = { ...@@ -26,7 +26,7 @@ export const Small: Story = {
args: { args: {
label: 'Label tag', label: 'Label tag',
size: 'small', size: 'small',
clickable: true,
action: new EventEmitter(), action: new EventEmitter(),
}, },
}; };
...@@ -44,6 +44,7 @@ export const Medium: Story = { ...@@ -44,6 +44,7 @@ export const Medium: Story = {
label: 'Medium tag', label: 'Medium tag',
color: 'white', color: 'white',
size: 'medium', size: 'medium',
clickable: true,
}, },
}; };
...@@ -71,6 +72,16 @@ export const MediumBlack: Story = { ...@@ -71,6 +72,16 @@ export const MediumBlack: Story = {
label: 'Médiathèque/Bibliothèque', label: 'Médiathèque/Bibliothèque',
color: 'black', color: 'black',
size: 'medium', size: 'medium',
clickable: false,
},
};
export const MediumGrey: Story = {
args: {
label: 'Médiathèque/Bibliothèque',
color: 'grey',
size: 'medium',
clickable: true,
}, },
}; };
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
*ngFor="let filter of checkedModulesFilter" *ngFor="let filter of checkedModulesFilter"
[label]="filter.displayText" [label]="filter.displayText"
[size]="'small'" [size]="'small'"
[color]="'black'" [color]="'grey'"
[iconName]="'cross'" [iconName]="'cross'"
[iconPosition]="'right'" [iconPosition]="'right'"
[clickable]="true" [clickable]="true"
......
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