Skip to content

make a few anchors with 'role="button"' respond to space - #3096

Open
Alex-Jordan wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
Alex-Jordan:button-space
Open

make a few anchors with 'role="button"' respond to space#3096
Alex-Jordan wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
Alex-Jordan:button-space

Conversation

@Alex-Jordan

Copy link
Copy Markdown
Contributor

No description provided.

@Alex-Jordan

Copy link
Copy Markdown
Contributor Author

This was the last item Claude found for accessibility concerns with webwork2. The only unaddressed item after all these PRs is the one about PDF harcopies not being tagged.

Comment thread htdocs/js/JobManager/jobmanager.js Outdated
Comment thread templates/ContentGenerator/CourseAdmin/manage_lti_course_map_form.html.ep Outdated
@Alex-Jordan
Alex-Jordan force-pushed the button-space branch 2 times, most recently from 6515df4 to a54cc71 Compare July 27, 2026 02:03

@drgrice1 drgrice1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As I am saying with all of these JavaScript changes, please change the forEach usage to for of loops.

Then this pull request is good.

@Alex-Jordan

Copy link
Copy Markdown
Contributor Author

OK, they are now "for of" loops.

@drgrice1 drgrice1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good.

@somiaj somiaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

I see the same JS code is added in multiple files. Would it be worth adding this to system.js and adding a class that can be used for other pages as well if there are other buttons in the future on other pages you want to respond to space?

@drgrice1

Copy link
Copy Markdown
Member

I had the same thought, but decided not to ask that at this point. It would be good though.

@Alex-Jordan

Copy link
Copy Markdown
Contributor Author

OK, now the duplicate code is in system.js.

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