-
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
9107d4d
a30c931
15276be
2444f57
ee255d4
c41fcfa
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 |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| {{yield to='edit'}} | ||
| {{else}} | ||
| <Hds::Button | ||
| aria-describedby={{@ariaDescribedBy}} | ||
|
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. Where do we pass in |
||
| @text={{@enableEditText}} | ||
| @color='secondary' | ||
| {{on 'click' @enableEdit}} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,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 +36,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 +52,7 @@ | |
|
|
||
| {{#if (can 'save model' @model)}} | ||
| <form.actions | ||
| @enableEditText={{t 'actions.edit-form'}} | ||
| @enableEditText={{t 'resources.user.actions.edit-details.button-text'}} | ||
|
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 don't believe we need the extra aria-described by stuff since you've already modified the edit text itself to be more descriptive for everyone. To be clear, I think we have 3 reasonable options here of which only one needs to get done:
Of the three, I think 1 and 2 is easiest but 3 is more convenient as a developer since you don't need to add a new translated string for every edit button, just the ID and refactor of the header. They're all fine at the end of the day though. |
||
| @submitText={{t 'actions.save'}} | ||
| @cancelText={{t 'actions.cancel'}} | ||
| /> | ||
|
|
||
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.
I don't think we should have a translation for an
aria-describedby