Skip to content

Commit

Permalink
Add details-marker display:none to hide default FAQ details arrow on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
wikjoh committed Oct 6, 2024
1 parent ac33c34 commit b18caf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ a:active, .navbar-link:active {
-moz-user-select: none;
user-select: none;
transition: var(--transition-default);
/* Hide marker */
/* Hide default arrow/marker */
list-style: none;
}
.faq-accordion summary span {
Expand All @@ -1421,6 +1421,9 @@ a:active, .navbar-link:active {
background-color: var(--color-faqchevronbg);
}
}
.faq-accordion summary::-webkit-details-marker {
display: none;
}
.faq-accordion p {
padding-inline: 1.5rem;
font-size: var(--fs-body-s);
Expand Down
5 changes: 4 additions & 1 deletion css/scss/components/_faq.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@
}
}

/* Hide marker */
/* Hide default arrow/marker */
list-style: none;
&::-webkit-details-marker {
display: none;
}
}

p {
Expand Down

0 comments on commit b18caf9

Please sign in to comment.