diff --git a/src/components/Question.jsx b/src/components/Question.jsx index 4f121fcf..9f76a2bd 100644 --- a/src/components/Question.jsx +++ b/src/components/Question.jsx @@ -146,7 +146,7 @@ export default class Question extends React.Component { headerClassName.push(Question.getEmphasizedClass(question)); if (FormUtils.isSection(question)) headerClassName.push("section-background"); - if (collapsible) headerClassName.push("cursor-pointer"); + if (collapsible) headerClassName.push("pointer"); if (this.isDebugged(question)) { headerClassName.push("show-irrelevant"); } @@ -215,31 +215,32 @@ export default class Question extends React.Component { return ( <> - - -
- {collapsible && - !FormUtils.isWizardStep(question) && - this._renderCollapseToggle()} - {label} -
- {this.renderQuestionIcons()} - {this.props.children} -
- {collapsible ? ( - {cardBody} - ) : ( - <>{cardBody} - )} -
+ + + +
+ {collapsible && + !FormUtils.isWizardStep(question) && + this._renderCollapseToggle()} + {label} +
+ {this.renderQuestionIcons()} + {this.props.children} +
+ + {collapsible ? cardBody : <>{cardBody}} + +
+
); diff --git a/src/styles/s-forms.css b/src/styles/s-forms.css index 34218c0c..485e5ea5 100644 --- a/src/styles/s-forms.css +++ b/src/styles/s-forms.css @@ -208,6 +208,14 @@ input:disabled { margin-bottom: 0; } +.accordion-button::after { + background-image: initial; +} + +.accordion-button:not(.collapsed)::after { + background-image: initial; +} + .emphasise-on-relevant-icon { animation: emphasiseOnRelevantIcon 0.5s ease-in; }