Skip to content

Commit

Permalink
[FEATURE] Traiter les retours sur la flashcard (PIX-15324)
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Dec 11, 2024
2 parents e039fa3 + 1525c83 commit 8fd9a34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
justify-content: space-between;
max-width: 345px;
height: 440px;
margin: auto auto var(--pix-spacing-4x);
margin: auto auto var(--pix-spacing-2x);
padding: var(--pix-spacing-6x);
background: var(--pix-neutral-0);
border: 5px solid var(--pix-neutral-100);
Expand Down Expand Up @@ -70,7 +70,7 @@
}

&--verso {
justify-content: flex-end;
justify-content: flex-start;
}
}
}
Expand All @@ -84,6 +84,10 @@

&__title {
@extend %pix-title-s;

width: 100%;
text-align: center;
text-wrap: balance;
}
}

Expand Down Expand Up @@ -111,6 +115,8 @@
}

&__title {
@extend %pix-title-xs;

padding: 0 var(--pix-spacing-4x);
color: var(--pix-neutral-0);
}
Expand Down
12 changes: 6 additions & 6 deletions mon-pix/app/components/module/element/flashcards/flashcards.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ export default class ModulixFlashcards extends Component {
<p class="element-flashcards__footer__question">{{t "pages.modulix.flashcards.answerDirection"}}</p>
<div class="element-flashcards__footer__answer">
<button
class="element-flashcards__footer__answer__button element-flashcards__footer__answer__button--no"
class="element-flashcards__footer__answer__button element-flashcards__footer__answer__button--yes"
type="button"
{{on "click" (fn this.onSelfAssessment "no")}}
{{on "click" (fn this.onSelfAssessment "yes")}}
>
{{t "pages.modulix.buttons.flashcards.answers.no"}}
{{t "pages.modulix.buttons.flashcards.answers.yes"}}
</button>
<button
class="element-flashcards__footer__answer__button element-flashcards__footer__answer__button--almost"
Expand All @@ -189,11 +189,11 @@ export default class ModulixFlashcards extends Component {
{{t "pages.modulix.buttons.flashcards.answers.almost"}}
</button>
<button
class="element-flashcards__footer__answer__button element-flashcards__footer__answer__button--yes"
class="element-flashcards__footer__answer__button element-flashcards__footer__answer__button--no"
type="button"
{{on "click" (fn this.onSelfAssessment "yes")}}
{{on "click" (fn this.onSelfAssessment "no")}}
>
{{t "pages.modulix.buttons.flashcards.answers.yes"}}
{{t "pages.modulix.buttons.flashcards.answers.no"}}
</button>
</div>
{{/if}}
Expand Down

0 comments on commit 8fd9a34

Please sign in to comment.