Skip to content

Commit

Permalink
Breaking change: Solves icon positioning within filter button
Browse files Browse the repository at this point in the history
  • Loading branch information
HeleenSG committed Aug 8, 2024
1 parent 85a34f1 commit 71a32b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
4 changes: 3 additions & 1 deletion docs/src/routes/(docs)/components/filter/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@
<h2>Bijbehorende bestanden</h2>
<p>
Voor meer informatie over importeren en instellen van componenten. Zie:
<a href="{base}/documentation/import-styling">Componenten gebruiken en styling toevoegen</a>
<a href="{base}/documentation/import-styling"
>Componenten gebruiken en styling toevoegen</a
>
</p>
<h3>Benodigd</h3>
<ul>
Expand Down
9 changes: 0 additions & 9 deletions manon/filter-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,4 @@
--filter-button-icon-font-family: var(--icon-font-family);
--filter-button-icon-font-size: var(--icon-font-size);
--filter-button-icon-font-weight: bold;

/* To center text within the button set the line-height to 1 */
--filter-button-icon-line-height: 1;

/* content on the button when the menu is collapsed */
--filter-button-icon-before-open-content: "";

/* content on the button when the menu is expanded */
--filter-button-icon-before-close-content: "";
}
19 changes: 2 additions & 17 deletions manon/filter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,8 @@
font-size: var(--filter-button-font-size);
min-width: 0;

&::after {
font-family: var(--filter-button-icon-font-family, inherit);
line-height: var(--filter-button-icon-line-height);
font-size: var(--filter-button-icon-font-size, inherit);
font-weight: var(--filter-button-icon-font-weight, inherit);
}

&[aria-expanded="true"] {
&::after {
content: var(--filter-button-icon-before-close-content);
}
}

&[aria-expanded="false"] {
&::after {
content: var(--filter-button-icon-before-open-content);
}
span.icon {
order: var(--filter-button-icon-order);
}
}
}
Expand Down

0 comments on commit 71a32b6

Please sign in to comment.