Skip to content

Commit 955e4be

Browse files
jedrzejchalubekimklau
andauthoredDec 7, 2020
refactor(docs-evergreen): Re-sking FAQ accordions (#1282)
* refactor(docs-evergreen): Re-sking FAQ accordions * Update _accordion.scss Co-authored-by: Klaudia <klaudiazawodnik@gmail.com>
1 parent 9cb78b3 commit 955e4be

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed
 

‎_plugins/jekyll-faq.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def render(context)
1414
<div class="accordion__heading" data-ref="accordion[trigger]">
1515
<%= key.split("|")[0] %>
1616
<div class="accordion__icon">
17-
<svg width="10" height="6" xmlns="http://www.w3.org/2000/svg">
18-
<path d="M1.36.27l-.72.7L5 5.39 9.36.97l-.72-.7L5 3.97z" fill-rule="nonzero"/>
17+
<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg">
18+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.87 4.17s.01 0 0 0l-3.5-4A.498.498 0 004 0c-.15 0-.28.07-.37.17l-3.5 4A.495.495 0 00.5 5h7a.495.495 0 00.37-.83z" fill="#8F95B2"/>
1919
</svg>
2020
</div>
2121
</div>

‎src/_includes/components/faq.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ <h3>{{ item[0] }}</h3>
1111
<div class="accordion__heading" data-ref="accordion[trigger]">
1212
{{ itemEl.title }}
1313
<div class="accordion__icon">
14-
{% include icons/symbols/caret-down.svg %}
14+
<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg">
15+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.87 4.17s.01 0 0 0l-3.5-4A.498.498 0 004 0c-.15 0-.28.07-.37.17l-3.5 4A.495.495 0 00.5 5h7a.495.495 0 00.37-.83z" fill="#8F95B2"/>
16+
</svg>
1517
</div>
1618
</div>
1719
<div class="accordion__body" data-ref="accordion[body]">

‎src/_sass/components/_accordion.scss

+8-7
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
margin-top: 25px;
66

77
& + & {
8-
border-top: 1px solid rgba(color(secondary), 0.16);
8+
border-top: 1px solid color(gray-300);
99
margin-top: 0;
1010
}
1111
}
1212

1313
&__heading {
1414
padding-right: 20px;
15-
font-size: 15px;
15+
font-size: 16px;
1616
font-weight: 500;
17-
color: color(secondary);
17+
color: color(gray-800);
1818
line-height: 1.71;
1919
position: relative;
2020
margin: 17px 0;
@@ -35,15 +35,16 @@
3535
}
3636

3737
&__link {
38-
text-decoration: underline;
39-
font-weight: 500;
40-
display: block;
38+
display: inline-block;
4139
margin-top: 7px;
40+
font-size: 14px;
41+
font-weight: 500;
42+
text-decoration: underline;
4243
}
4344

4445
&__icon {
4546
width: 10px;
46-
color: rgba(color(secondary-dark), 0.5);
47+
color: color(gray-600);
4748
position: absolute;
4849
top: 50%;
4950
right: 0;

0 commit comments

Comments
 (0)
Please sign in to comment.