Skip to content

Commit fd261a0

Browse files
Merge branch 'master' into dependabot/npm_and_yarn/lodash-4.17.23
2 parents b871272 + 857937b commit fd261a0

File tree

6 files changed

+185
-133
lines changed

6 files changed

+185
-133
lines changed

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@tanstack/react-query": "^4.29.25",
1010
"@tanstack/react-query-devtools": "^4.29.25",
1111
"@tanstack/react-table": "^8.9.3",
12-
"axios": "^1.13.2",
12+
"axios": "^1.13.5",
1313
"babel-plugin-styled-components": "^2.1.4",
1414
"gatsby": "^5.15.0",
1515
"gatsby-plugin-google-tagmanager": "^5.12.0",

src/pages/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ const App = () => {
271271
<Faq
272272
category={['Layer5 Badges']}
273273
display-category-title={'true'}
274+
theme={theme}
274275
/>
275276
</section>
276277

@@ -279,6 +280,7 @@ const App = () => {
279280
<Faq
280281
category={['certifications']}
281282
display-category-title={'true'}
283+
theme={theme}
282284
/>
283285
</section>
284286

src/reusecore/Accordion/accordion.style.js

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ import {
88
AccordionItemPanel,
99
} from "react-accessible-accordion";
1010

11-
const fadeIn = keyframes`
12-
0% {
13-
opacity: 0;
14-
}
15-
100% {
16-
opacity: 1;
17-
}
18-
`;
19-
2011
export const AccordionWrapper = styled(Accordion)``;
2112

2213
export const AccordionItemWrapper = styled(AccordionItem)``;
@@ -56,9 +47,26 @@ export const AccordionItemButtonWrapper = styled(AccordionItemButton)`
5647
padding: 0.625rem 1.5rem 0.625rem 1.5rem;
5748
`;
5849
export const AccordionBodyWrapper = styled(AccordionItemPanel)`
59-
animation: 0.35s ${fadeIn} ease-in;
60-
&.accordion__body--hidden {
61-
animation: 0.35s ${fadeIn} ease-in;
50+
overflow: hidden;
51+
display: grid;
52+
grid-template-rows: 1fr;
53+
transition: grid-template-rows ease 1.0s;
54+
55+
> .inner {
56+
min-height: 0;
57+
visibility: visible;
58+
opacity: 1;
59+
transition: opacity 0.35s;
60+
}
61+
62+
&[hidden] {
63+
grid-template-rows: 0fr;
64+
65+
> .inner {
66+
visibility: hidden;
67+
opacity: 0;
68+
transition: opacity 0.35s, visibility 0s 0.35s;
69+
}
6270
}
6371
`;
6472

src/sitecomponents/Faq/faqSection.style.js

Lines changed: 78 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -10,106 +10,132 @@ const FaqSectionWrapper = styled.section`
1010
font-style: italic;
1111
text-transform: capitalize;
1212
}
13-
.accordion__item + .accordion__item {
14-
border-color: transparent;
13+
14+
/* Accordion wrapper */
15+
.MuiAccordion-root {
16+
margin-bottom: 2px;
17+
background: ${(props) => props.theme.body};
18+
color: ${(props) => props.theme.text};
19+
// border-radius: 8px;
20+
overflow: hidden;
21+
22+
23+
&::before {
24+
display: none;
25+
}
26+
&.Mui-expanded {
27+
margin: 0; /* removes the empty top space */
28+
}
29+
&.Mui-expanded::before {
30+
display: none;
31+
}
32+
}
33+
34+
/* Accordion header */
35+
.MuiAccordionSummary-root {
36+
background: #00b39f;
37+
padding: 0rem 1rem;
38+
39+
h5 {
40+
font-weight: 700;
41+
font-size: 18px;
42+
position: relative;
43+
margin: 0;
44+
color: #ffffff;
45+
}
46+
&.Mui-expanded {
47+
background: black;
48+
border: 1px solid #00b39f;
49+
}
1550
}
16-
.reusecore__accordion {
17-
margin-bottom: 1rem;
51+
52+
/* Expand icon */
53+
.MuiAccordionSummary-expandIconWrapper {
54+
color: #ffffff;
1855
}
19-
.accordion__item {
20-
.accordion__header {
21-
padding:0.5px;
22-
background: #00b39f;
23-
h5 {
24-
font-weight: 700;
25-
font-size: 18px;
26-
position: relative;
27-
color: #ffffff;
28-
}
29-
> div {
30-
&:focus {
31-
outline: none;
32-
}
33-
}
56+
57+
/* Accordion body */
58+
.MuiAccordionDetails-root {
59+
background: ${(props) => props.theme.body};
60+
color: ${(props) => props.theme.text};
61+
62+
p {
63+
font-size: 16px;
64+
font-weight: 300;
65+
text-align: initial;
66+
color: inherit; /* FIX: prevents invisible text */
3467
}
3568
36-
.accordion__body {
37-
padding: 0 0.625rem 0 0.625rem;
38-
p {
39-
font-size: 16px;
40-
font-weight: 300;
41-
text-align: initial;
42-
margin: 0;
43-
}
69+
ul {
70+
padding-left: 1.2rem;
71+
}
72+
73+
li {
74+
color: inherit;
4475
}
76+
4577
}
78+
4679
div.faqbutton {
47-
text-align: center;
48-
80+
text-align: center;
81+
4982
button.faqbutton {
5083
margin-bottom: 1.25rem;
5184
}
5285
}
86+
5387
.section-title {
5488
text-align: center;
89+
5590
h1 {
5691
margin-bottom: 3.75rem;
5792
font-size: 40px;
5893
line-height: 3.125rem;
5994
}
95+
6096
.search {
6197
margin-bottom: 3.125rem;
98+
6299
input {
63100
font-size: 20px;
64101
width: 80%;
65102
padding: 1rem;
66-
border: 1px solid #FFFFFF;
67-
background-color: #F0F0F0;
103+
border: 1px solid #ffffff;
104+
background-color: #f0f0f0;
68105
border-radius: 1.25rem;
69106
}
70107
}
71108
}
109+
72110
.askus_section {
73111
text-align: left;
112+
74113
h2 {
75114
margin-bottom: 1rem;
76115
}
116+
77117
p {
78118
margin-bottom: 2rem;
79119
}
120+
80121
button {
81122
margin-bottom: 0.5rem;
82123
}
83124
}
84-
@media only screen and (max-width: 912px) {
85-
.reusecore__accordion {
86-
margin-bottom: 3.125rem;
87-
}
88-
}
89125
90126
@media only screen and (max-width: 568px) {
91127
.section-title {
92128
text-align: center;
93129
}
94-
.reusecore__accordion {
95-
text-align: left;
96-
}
97-
h2 {
98-
text-align: left;
99-
}
100130
}
101-
131+
102132
@media only screen and (max-width: 480px) {
103-
.accordion__item {
104-
.accordion__header {
105-
h5 {
106-
font-size: 13px;
107-
line-height: 21px;
108-
padding-right: 1.6rem;
109-
}
110-
}
133+
.MuiAccordionSummary-root h5 {
134+
font-size: 13px;
135+
line-height: 21px;
136+
padding-right: 1.6rem;
111137
}
112138
}
113139
`;
114140

115-
export default FaqSectionWrapper;
141+
export default FaqSectionWrapper;

0 commit comments

Comments
 (0)