Skip to content
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

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

VirmasaloA
Copy link
Collaborator

No description provided.

@VirmasaloA
Copy link
Collaborator Author

Poistin samalla parista muustakin kohtaa ylimääräsiä alt atribuutteja.

@@ -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);
Copy link
Collaborator

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]="
Copy link
Collaborator

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.


parseAriaLabel(expanded: string): string {
return (
this.translate?.instant(expanded) +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Miksi kysymysmerkit?

Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants