-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSCEXAM-1163 Fix examination question hide button accessibility #1151
base: dev
Are you sure you want to change the base?
Conversation
Poistin samalla parista muustakin kohtaa ylimääräsiä alt atribuutteja. |
900cc93
to
56e91af
Compare
@@ -71,6 +71,11 @@ export class ExaminationQuestionComponent implements OnInit, AfterViewInit { | |||
const { answer } = this.sq.clozeTestAnswer; | |||
this.clozeAnswer = JSON.parse(answer); | |||
} | |||
this.questionTitle = this.removeParagraphTags(this.sq.question.question); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mikäs tämä juttu on?
Ah ok joku nappulan aria-teksti. Voisko sen koko tekstin vaikka laittaa funktion sisään ettei tuonne templaattiin tarvitse noin paljon stringi-manipulaatiota pistää? (katso ylempi kommentti=
<button | ||
tabindex="0" | ||
class="pointer section-box-title arrow border-none background-none" | ||
[attr.aria-label]=" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Voisko tämän labelin generoinnin laittaa omaan funtioonsa? Nyt näyttää aika sekavalta näin templaatissa.
2a30912
to
02c4fe4
Compare
|
||
parseAriaLabel(expanded: string): string { | ||
return ( | ||
this.translate?.instant(expanded) + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Miksi kysymysmerkit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Voisko käyttää templaatti-stringiä mielummin? Eli ``-syntaksia?
cca43ca
to
fba3fb7
Compare
No description provided.