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

SAK-50757 Gradebook modals launched from cell not receiving focus #13125

Open
wants to merge 2 commits into
base: 23.x
Choose a base branch
from

Conversation

hornersa
Copy link
Contributor

@hornersa hornersa commented Dec 20, 2024

Jira: https://sakaiproject.atlassian.net/browse/SAK-50757

The demo for this proposed fix plus some explanations regarding it are in a screencast posted to the jira: SAK-50757-ProposedFixDemo-20241219.mp4.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

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

There are accessibility issues in these changes.

@@ -7,7 +7,7 @@
<form class="form-vertical" wicket:id="form">
<div wicket:id="editCommentFeedback"></div>

<textarea wicket:id="comment" id="gradeComment" rows="4" class="form-control awesomplete"></textarea>
<textarea wicket:id="comment" id="gradeComment" rows="4" class="form-control awesomplete my-3"></textarea>
Copy link

Choose a reason for hiding this comment

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

Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.

@samr874
Copy link

samr874 commented Jan 2, 2025

@hornersa Are contributions still active for this project what is the status of this issue is it resolved?

@ottenhoff ottenhoff requested a review from jonespm January 2, 2025 16:09
@ottenhoff
Copy link
Contributor

Hi @samr874 this is a pull request waiting for review. are you table to test it and confirm it fixes the bug?

@samr874
Copy link

samr874 commented Jan 2, 2025

@ottenhoff sure let me review this then will update you with required changes

@ottenhoff
Copy link
Contributor

Hi @samr874 how did your testing go?

// instead of navigating to the next tabbable control in the modal.
event.stopImmediatePropagation();
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

what exactly is this doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To answer that, I've posted an explainer in the form of a screencast attached to the corresponding jira, titled SAK-50757-ProposedFixExplainer-20250107.mp4.

Copy link
Contributor

Choose a reason for hiding this comment

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

@adrianfish does this fix make sense to you for 23.x? it seems like your fix in SAK-49442 has modified/broken this modal behavior in 23.x

@ottenhoff
Copy link
Contributor

My testing shows that this is a likely improvement. It's not perfect as it doesn't trap the tabbing inside the modal the way it should (The way Bootstrap modal does). But it's still an improvement.

@ern ern changed the title SAK-50757 Gradebook: Modals launched from cell not receiving focus SAK-50757 Gradebook modals launched from cell not receiving focus Jan 10, 2025
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.

3 participants