From 3c7fc831da681ed9c8e4f40635ddaf361520094f Mon Sep 17 00:00:00 2001 From: dianeCdrPix Date: Mon, 18 Nov 2024 15:27:39 +0100 Subject: [PATCH 1/3] fix(mon-pix): add heading in flashcards intro --- .../module/element/flashcards/_flashcards-card.scss | 9 +++++++++ .../module/element/flashcards/flashcards-intro-card.gjs | 4 +--- .../components/module/flashcards-intro-card_test.gjs | 2 +- .../integration/components/module/flashcards_test.gjs | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/mon-pix/app/components/module/element/flashcards/_flashcards-card.scss b/mon-pix/app/components/module/element/flashcards/_flashcards-card.scss index ef033475a4e..c7e0a2e27d9 100644 --- a/mon-pix/app/components/module/element/flashcards/_flashcards-card.scss +++ b/mon-pix/app/components/module/element/flashcards/_flashcards-card.scss @@ -15,6 +15,15 @@ box-shadow: 0 12px 24px 0 rgb(7 20 46 / 12%); } +/* To get higher specifity than `.modulix-passage h3` we double classes usage */ +.element-flashcards-intro-card { + .element-flashcards-intro-card { + &__title { + @extend %pix-title-s; + } + } +} + .element-flashcards-card { &__content { display: flex; diff --git a/mon-pix/app/components/module/element/flashcards/flashcards-intro-card.gjs b/mon-pix/app/components/module/element/flashcards/flashcards-intro-card.gjs index 23544bd51b9..1d56a2c4c7b 100644 --- a/mon-pix/app/components/module/element/flashcards/flashcards-intro-card.gjs +++ b/mon-pix/app/components/module/element/flashcards/flashcards-intro-card.gjs @@ -9,9 +9,7 @@ import { t } from 'ember-intl'; {{/if}} -
-

{{@title}}

-
+

{{@title}}