Skip to content

Commit 83641b2

Browse files
committed
feat: Only show icon for expanders on mobile
1 parent 67eb974 commit 83641b2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

assets/sass/trainCategory.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,23 @@
1818
gap: 0.6rem;
1919
}
2020

21-
.o-expander__summary--train-category {
21+
details.o-expander__summary--train-category {
2222
&:hover,
2323
&:focus {
2424
.o-train-category__title-text {
2525
text-decoration: underline;
2626
}
2727
}
2828
}
29+
30+
details.o-expander--train-category:not([open]) {
31+
@media (max-width: $breakpoint-md) {
32+
.a-tag__text {
33+
display: none;
34+
}
35+
}
36+
}
37+
2938
.o-train-category__content {
3039
.m-text-highlight {
3140
&--important,

layouts/partials/tag.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<span class="a-tag a-tag--{{ .Type }}">
22
{{ partial "icon" .Icon }}
3-
{{ i18n .Text }}
3+
<span class="a-tag__text">{{ i18n .Text }}</span>
44
</span>

0 commit comments

Comments
 (0)