-
Notifications
You must be signed in to change notification settings - Fork 33
[FE-112] Boundary Enterprise a11y audit- User details form #2977
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
base: main
Are you sure you want to change the base?
Changes from all commits
ed04192
f7082ea
334e7d6
d86805c
2ec32be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ | |
| }} | ||
|
|
||
| <Rose::Form | ||
| id={{t 'resources.user.actions.edit-details.aria-describedby'}} | ||
| @onSubmit={{@submit}} | ||
| @cancel={{@cancel}} | ||
| @disabled={{@model.isSaving}} | ||
|
|
@@ -16,7 +17,7 @@ | |
| @value={{@model.name}} | ||
| @isInvalid={{@model.errors.name}} | ||
| @isOptional={{true}} | ||
| disabled={{form.disabled}} | ||
| readonly={{form.disabled}} | ||
| {{on 'input' (set-from-event @model 'name')}} | ||
| as |F| | ||
| > | ||
|
|
@@ -36,7 +37,7 @@ | |
| @value={{@model.description}} | ||
| @isInvalid={{@model.errors.description}} | ||
| @isOptional={{true}} | ||
| disabled={{form.disabled}} | ||
| readonly={{form.disabled}} | ||
| as |F| | ||
| > | ||
| <F.Label>{{t 'form.description.label'}}</F.Label> | ||
|
|
@@ -52,7 +53,10 @@ | |
|
|
||
| {{#if (can 'save model' @model)}} | ||
| <form.actions | ||
| @enableEditText={{t 'actions.edit-form'}} | ||
| @ariaDescribedBy={{t | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I understand why we linked the ID of the form itself, what text are we trying to descriptively add to this by using
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I pinged you in the JIRA ticket comment but adding reference here for good measure. (taking a screenshot so it has more context versus copy paste):
https://hashicorp.atlassian.net/browse/FE-112?focusedCommentId=828913
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Going off @MelSumner thoughts in the JIRA ticket, I set the form ID value to be
@ZedLi from what I am getting here, it sounds like the form ID value should be semantic versus the ember generated ID. Maybe Melanie could provide some clarity here for both of us. I'm not all that familiar with
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, I think all those choices make sense but it sounds like we just need to pick one choice? It seems we could leave the button as With regards to the current implementation with 3, I was specifically pointing out the fact that it's currently pointing to the form ID instead of something with descriptive text (which melanie suggests as the form title):
Though that looks like it has some extra text which would pulled in as part of the helper doc link text. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you wouldn't need to translate the element's
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assuming this is what we are talking about: How would we do this with
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aria-description would be an attribute on the actual element itself, in this case the button in your example. We wouldn't be passing in a separate element but instead be passing the attribute to the button itself. i.e. My only question is if
@MelSumner Do you happen to know if this is something that is just a formality and we're OK to use or we should avoid for now?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fwiw, we can actually pass in |
||
| 'resources.user.actions.edit-details.aria-describedby' | ||
| }} | ||
| @enableEditText={{t 'resources.user.actions.edit-details.button-text'}} | ||
| @submitText={{t 'actions.save'}} | ||
| @cancelText={{t 'actions.cancel'}} | ||
| /> | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.
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.
change aria-describedby to 'edit-user-details' to match button text (if you need aria-describedby).