Hello,
I was working in the previous Support environment to refine the styling of an Accordion I have on my site. I’m almost there with the CSS - but there is still an issue where the dormant state of the Accordion header does not match hover/click state.
- When the header is closed/inactive, I need to change the font of the title “Feedback on this tool” to ‘ag-super’ and ‘color:#0066B3;’
- The hover state works perfectly: ‘ag-super’ and circle-down displays correctly
- When the accordion is active and no hover, need to make the title ‘ag-super’ and the circle-down icon also needs to be fixed so that it points directly down (instead of down to the left).
Attached is a video/gif of the behavior:
Below is the code I have in Customizer currently. Thanks in advance for your help!
Cheers,
DB
/–ACCORDION styles–/
/Accordion heading background color/
/change the font and color of the accordion item title/
.accordion-tool .x-accordion-heading a {
background-color: #fff;
font-family: “ag-super” !important;
color: #0066B3;
}
/Accordion heading hover color/
.accordion-tool .x-accordion-heading a:hover {
background-color: #fff;
font-family: “ag-super” !important;
}
/Overall accordion border color/
.accordion-tool .x-accordion-group {
border-color: #fff;
}
/Border color for each accordion item/
.accordion-tool .x-accordion-group:first-of-type {
border-color: #fff;
}
.accordion-tool .x-accordion-group:nth-of-type(2) {
border-color: #fff;
}
/Background color for each accordion header/
.accordion-tool .x-accordion-heading .x-accordion-toggle {
background: #fff;
}
/Background color for each accordion item/
.accordion-tool .x-accordion-body .x-accordion-inner {
background-color: #fff;
}
/* Toggle Icons */
/* Change Icon of Toggle and color when open */
.accordion-tool .x-accordion-heading .x-accordion-toggle:before {
content: “\f13a”;
color:#0066B3;
}
/* Toggle Icon Color when closed*/
.accordion-tool .x-accordion-heading .x-accordion-toggle.collapsed:before {
color:#0066B3;
content: “\f138”; /* If you wanted a different Icon when closed */
}
/* Toggle Icon Hover Color & Position */
.accordion-tool .x-accordion-heading .x-accordion-toggle:hover:before {
color:#0066B3;
transform: rotate(0) !important;
}