-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#12535] Instructor Course Page: Make "Show" group tabbable #12540
[#12535] Instructor Course Page: Make "Show" group tabbable #12540
Conversation
I may have complicated my solution by using |
Thanks @rexong! Is the Also, when using a screen reader, the element is being read as a "visited link" - not sure if that's appropriate in this instance. I would suggest adding |
Hello @weiquu |
Hmm not too sure about this... @ seniors (@zhaojj2209 @samuelfangjw @wkurniawan07) do you foresee any issues with the change from
|
Yes please do. As pointed out by @weiquu, element is wrongly tagged here. I also have reservations about styling buttons as links, but might be acceptable in this case since it's existing behaviour. |
Okay, I will make the change to button instead. |
Ready for review! |
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.
Quick comment, otherwise looks good!
Show | ||
</a> | ||
<button *ngIf="!course.isLoadingCourseStats; else loadingSpinner" | ||
id="show-statistics-{{ i }}" (click)="getCourseStats(i)" |
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.
Can I check if this id
attribute should be here or for the previous column? I think it was previously on the "Teams" column... doubt it makes much of a difference though, but just in case, should we shift it back?
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.
Updated
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.
LGTM!
Hello, bumping this PR for final review! |
Hello, bumping this PR for final review! |
Fixes #12535
Outline of Solution
I have added attributes
tabindex="0"
so that user can use the tab button to focus on theShow
anchor tag.Then, I added
(keyup.enter)
so that when the user pressed enter it will render the statistic.In addition, I noticed that when hovering over the
Show
anchor tag with the cursor, the cursor is not a pointer. As such, I have added a CSSclickable
to make the cursor a pointer when hovering over the anchor tag.Here is a video demo
TEAMMATES.-.Online.Peer.Feedback_Evaluation.System.for.Student.Team.Projects.-.Google.Chrome.2023-08-01.13-35-04.mp4