Skip to content

Commit 93a4bca

Browse files
committed
feat: Only show icon for expanders on mobile
1 parent 7a36181 commit 93a4bca

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

assets/sass/tag.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,14 @@
1515
border: 0.1rem solid var(--tag-#{$name}-border);
1616
}
1717
}
18+
19+
&__text {
20+
@media (max-width: $breakpoint-md) {
21+
display: none;
22+
23+
details[open] & {
24+
display: inline;
25+
}
26+
}
27+
}
1828
}

assets/sass/trainCategory.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
}
2727
}
2828
}
29+
2930
.o-train-category__content {
3031
.m-text-highlight {
3132
&--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)