Skip to content

Commit

Permalink
[#362] Fix: Align opened/closed section blue color
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Nov 15, 2024
1 parent e17bf31 commit 6561bce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ export default class Question extends React.Component {
{this.renderSubQuestions(classname)}
</Card.Body>
);
const answerableSectionStyles = this._getHeaderClassName();

if (this.state.expanded) answerableSectionStyles.push("text-primary");

return (
<Accordion
Expand All @@ -296,7 +299,7 @@ export default class Question extends React.Component {
<Card className="mb-3">
<Card.Header
onClick={this._toggleCollapse}
className={this._getHeaderClassName()}
className={answerableSectionStyles}
>
{this.renderAnswers()}
</Card.Header>
Expand Down

0 comments on commit 6561bce

Please sign in to comment.