<ul class="active-filters list ">
<li class="active-filters__item list__item ">
<a href="#" class="active-filters__remove " aria-label="Disable filter: Label - Value" title="Disable filter: Label - Value">
<svg class="icon active-filters__remove-icon" role="img">
<title>Close</title>
<use xlink:href="/images/icons-sprite.svg#close"></use>
</svg>
</a>
<span class="active-filters__label">
Kleur:
</span>
<span class="active-filters__value">
Rood
</span>
</li>
<li class="active-filters__item list__item ">
<a href="#" class="active-filters__remove " aria-label="Disable filter: Label - Value" title="Disable filter: Label - Value">
<svg class="icon active-filters__remove-icon" role="img">
<title>Close</title>
<use xlink:href="/images/icons-sprite.svg#close"></use>
</svg>
</a>
<span class="active-filters__label">
Maat:
</span>
<span class="active-filters__value">
S
</span>
</li>
<li class="active-filters__item list__item ">
<a href="#" class="active-filters__remove " aria-label="Disable filter: Label - Value" title="Disable filter: Label - Value">
<svg class="icon active-filters__remove-icon" role="img">
<title>Close</title>
<use xlink:href="/images/icons-sprite.svg#close"></use>
</svg>
</a>
<span class="active-filters__label">
Merk:
</span>
<span class="active-filters__value">
UFC
</span>
</li>
<a href="#" class="active-filters__clear-all " title="Wis alle filters">
Wis alle filters
</a>
</ul>
<ul class="active-filters list {{ class }}">
{{# each filters }}
<li class="active-filters__item list__item {{ class }}">
<a
href="#"
class="active-filters__remove {{ class }}"
aria-label="{{ ariaLabel }}"
title="{{ ariaLabel }}"
>
{{ render '@icon' icon }}
</a>
<span class="active-filters__label">
{{ label }}:
</span>
<span class="active-filters__value">
{{ value }}
</span>
</li>
{{/each}}
<a
href="{{ clear.href }}"
class="active-filters__clear-all {{ clear.class }}"
title="{{ clear.title }}"
>
{{ clear.text }}
</a>
</ul>
{
"clear": {
"href": "#",
"text": "Wis alle filters",
"title": "Wis alle filters"
},
"filters": [
{
"label": "Kleur",
"value": "Rood",
"ariaLabel": "Disable filter: Label - Value",
"icon": {
"id": "close",
"title": "Close",
"class": "active-filters__remove-icon"
}
},
{
"label": "Maat",
"value": "S",
"ariaLabel": "Disable filter: Label - Value",
"icon": {
"id": "close",
"title": "Close",
"class": "active-filters__remove-icon"
}
},
{
"label": "Merk",
"value": "UFC",
"ariaLabel": "Disable filter: Label - Value",
"icon": {
"id": "close",
"title": "Close",
"class": "active-filters__remove-icon"
}
}
]
}
$active-filters__remove-size : 48px !default;
$active-filters__remove-padding : 0 !default;
$active-filters__remove-border : none !default;
$active-filters__remove-background : none !default;
$active-filters__remove-icon-margin : 0 auto !default;
$active-filters__remove-icon-padding : 0 !default;
$active-filters__icon-fill : $red !default;
$active-filters__icon-fill--hover : $color-secondary !default;
$active-filters__icon-transition : $transition-base !default;
$active-filters__icon-size : $font-size-small !default;
$active-filters__clear-border-size : 2px !default;
$active-filters__clear-border : $active-filters__clear-border-size solid $red !default;
$active-filters__clear-border-radius : 5px !default;
$active-filters__clear-margin : 0 0 0 $spacer--extra-large !default;
$active-filters__clear-height : 48px !default;
$active-filters__clear-line-height : ($active-filters__clear-height - (2 * $active-filters__clear-border-size));
$active-filters__clear-font-size : $font-size-base !default;
$active-filters__clear-color : $red !default;
$active-filters__clear-font-weight : $font-weight-bold !default;
$active-filters__clear-color\@medium : $color-secondary !default;
.active-filters {
&__item {
display: flex;
align-items: center;
height: 38px;
margin: 6px 0;
background: #f3f3f3;
color: #989898;
border-radius: 6px;
font-family: $font-family-saira;
}
&__remove {
display: flex;
align-items: center;
min-width: $active-filters__remove-size;
min-height: $active-filters__remove-size;
padding: $active-filters__remove-padding;
border: $active-filters__remove-border;
outline: none;
background: $active-filters__remove-background;
cursor: pointer;
word-break: break-all;
&:hover,
&:focus {
outline-offset: -7px;
.active-filters__remove-icon {
fill: $active-filters__icon-fill--hover;
}
}
}
&__remove-icon {
display: block;
padding: $active-filters__remove-icon-padding;
margin: $active-filters__remove-icon-margin;
width: $active-filters__icon-size;
height: $active-filters__icon-size;
fill: $active-filters__icon-fill;
transition: $active-filters__icon-transition;
}
&__label {
max-width: calc(100% - #{$active-filters__remove-size});
word-break: break-all;
}
&__value {
max-width: calc(100% - #{$active-filters__remove-size});
word-break: break-all;
}
&__clear-all {
display: flex;
text-align: center;
justify-content: center;
align-items: center;
min-width: 100%;
min-height: $active-filters__clear-height;
color: $active-filters__clear-color;
border: $active-filters__clear-border;
border-radius: $active-filters__clear-border-radius;
font-size: $active-filters__clear-font-size;
font-weight: $active-filters__clear-font-weight;
line-height: $active-filters__clear-line-height;
text-decoration: none;
margin: 16px 0;
&:hover,
&:focus {
text-decoration: none;
color: $active-filters__clear-color;
}
@include mq($screen-m) {
display: inline-flex;
// margin: $active-filters__clear-margin;
justify-content: flex-start;
min-width: 0;
border: none;
text-decoration: none;
margin: 0;
&:hover,
&:focus {
color: $active-filters__clear-color\@medium;
text-decoration: underline;
}
}
}
}
There are no notes for this item.