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

7771 accessibility update form labels #8042

Merged
merged 9 commits into from Aug 6, 2021

Conversation

sekmiller
Copy link
Contributor

What this PR does / why we need it: Fixes the correlation between labels and inputs on the dataverse user page when in create mode.

Which issue(s) this PR closes:

Closes #7771 Accessibility form labels not associated with inputs on Sign Up Page

Special notes for your reviewer:

Suggestions on how to test this:
I installed the checking tool mentioned in the issue https://wave.webaim.org/

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No
Is there a release notes update needed for this change?:
no
Additional documentation:
none

@@ -571,7 +571,7 @@
<div class="form-horizontal">
<div class="form-group" jsf:rendered="#{DataverseUserPage.editMode == 'CREATE' or DataverseUserPage.editMode == 'EDIT'}">
<!-- Username -->
<label for="userNameEmail" class="col-sm-3 control-label">
<label for="dataverseUserForm:accountInfoView:userName" class="col-sm-3 control-label">
Copy link
Contributor

Choose a reason for hiding this comment

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

@sekmiller rather than add the whole name (though dropping the mail was definitely needed), did you try using <h:outputLabel> or <p:outputLabel>? If that works, that would be better, in case the structure changes some day.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't try it originally because I wasn't sure if I could replicate the formatting. I'll see if I can get it to look right with outputLabel.

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Review 🦁 to QA 🔎✅ Aug 6, 2021
@kcondon kcondon self-assigned this Aug 6, 2021
@kcondon kcondon merged commit 0e42250 into develop Aug 6, 2021
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA 🔎✅ to Done 🚀 Aug 6, 2021
@kcondon kcondon deleted the 7771-accessibility-update-form-labels branch August 6, 2021 18:23
@djbrooke djbrooke added this to the 5.7 milestone Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Accessibility - form labels are not associated with inputs on "Sign up" page
4 participants