Skip to content

Commit

Permalink
[Upd #84] Renamed className show-irrelevant for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Jan 25, 2022
1 parent 88522f6 commit 9ac3174
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class Question extends React.Component {
if (!FormUtils.isRelevant(question) &&
(this.context.options.debugMode || FormUtils.isQuestionMatchingStartingQuestionId(subQuestion, options.startingQuestionId))) {
return (
<div className="showIrrelevant">
<div className="show-irrelevant">
{renderQuestion}
</div>
);
Expand Down Expand Up @@ -268,7 +268,7 @@ export default class Question extends React.Component {
const subQuestion = question[Constants.HAS_SUBQUESTION]

if ((debugMode || FormUtils.isQuestionMatchingStartingQuestionId(subQuestion, startingQuestionId)) && !FormUtils.hasAnswer(question)) {
return "showIrrelevant";
return "show-irrelevant";
}
return "";
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/wizard/VerticalWizardNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const VerticalWizardNav = ({ steps, onNavigate, currentStep }) => {
action={true}
active={index === currentStep ? 'active' : ''}
variant={'default'}
className={options.debugMode && !FormUtils.isRelevant(step) ? "showIrrelevant" : Question.getEmphasizedClass(step)}
className={options.debugMode && !FormUtils.isRelevant(step) ? "show-irrelevant" : Question.getEmphasizedClass(step)}
>
{JsonLdUtils.getLocalized(step[JsonLdUtils.RDFS_LABEL], options.intl)}
</ListGroupItem>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/s-forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ input:disabled {
font-size: 0.5625rem;
}

.showIrrelevant {
.show-irrelevant {
opacity: 50%;
pointer-events: none;
}
Expand Down

0 comments on commit 9ac3174

Please sign in to comment.