event filter styling, add toggler button styling

This commit is contained in:
elise
2024-07-15 19:46:00 +02:00
parent ebb0ee41ff
commit a7589440ba
4 changed files with 56 additions and 18 deletions

View File

@ -55,11 +55,10 @@ export const EventFilter = ({
.map((category) => (
<li
key={category.slug}
className={
activeCategory === category.slug ? styles.active : ""
}
>
<button
className="button toggler"
data-active={activeCategory === category.slug}
onClick={() =>
setCategory(
activeCategory === category.slug ? null : category.slug

View File

@ -32,15 +32,6 @@
button {
margin-bottom: 0;
background: var(--color-goldenBeige);
color: var(--color-deepBrick);
}
.active {
button {
background: var(--color-deepBrick);
color: var(--color-goldenBeige);
}
}
&[data-show=true] {
@ -54,4 +45,8 @@
opacity: 1;
}
}
}
.eventFilterExplained {
padding: var(--spacing-sitepadding-block) 0;
}