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

Refactored online content toggle for accessibility #1493

Merged
merged 4 commits into from
Jan 30, 2025

Conversation

Seanwarren77
Copy link
Contributor

@Seanwarren77 Seanwarren77 commented Jan 23, 2025

advances #1488
Screenshot 2025-01-30 at 9 34 31 AM

@Seanwarren77 Seanwarren77 changed the title WIP as of 1/22/25 Refactored online content toggle for accessibility Jan 28, 2025
@Seanwarren77 Seanwarren77 marked this pull request as ready for review January 28, 2025 21:05
Copy link
Member

@hackartisan hackartisan left a comment

Choose a reason for hiding this comment

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

Just had a question about the markup. Also, can you add a screenshot?

</div>
</label>
Copy link
Member

Choose a reason for hiding this comment

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

I expected the label tag to close before the toggle div starts, am I mistaken?

@Seanwarren77
Copy link
Contributor Author

@hackartisan I tried it the way you suggested and it did not work. So I added a test to make sure it stays working.

@hackartisan
Copy link
Member

Oh okay it looks like you can put the element inside the label. I've just never seen it that way. Here's more info: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

thanks for the extra test, good idea!

@hackartisan hackartisan merged commit ece2ca1 into main Jan 30, 2025
4 checks passed
@hackartisan hackartisan deleted the i1488_toggle_field_label branch January 30, 2025 15:56
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