-
Notifications
You must be signed in to change notification settings - Fork 179
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
Fix a11y issue with Data Science Projects: Pagination #995
Fix a11y issue with Data Science Projects: Pagination #995
Conversation
pagination changes look good. Are you going to rebase this pr? or will it rebase when we merge? |
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.
Pagination changes lgtm, add variant could change the ID of the pagination components and differentiate the top and bottom ones.
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.
Pagination seems great.
@@ -45,6 +45,7 @@ const ServingRuntimeTokenInput: React.FC<ServingRuntimeTokenInputProps> = ({ | |||
return ( | |||
<FormGroup | |||
label="Service account name" | |||
fieldId="simple-form-name-01" |
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.
Perhaps not this PR / a11y related -- but simple-form
? @lucferbux a little help here? Why is this not properly named? This extends throughout the component.
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.
This fieldId of FormGroup needs to match the id of TextInput for VO to call out the form labels correctly! Agreed that we could rename it to something that makes more sense - updated here, and in 26c978e#diff-ee0ec36a5925e8c06ac689a1cbec0356d48cb73fe36577c2c8e9046d6d6583e7
@@ -8,7 +8,11 @@ const PasswordInput: React.FC<React.ComponentProps<typeof TextInput>> = (props) | |||
return ( | |||
<InputGroup> | |||
<TextInput {...props} type={isPassword ? 'password' : 'text'} /> | |||
<Button variant="control" onClick={() => setPassword(!isPassword)}> | |||
<Button | |||
aria-label={isPassword ? 'Show key' : 'Hide key'} |
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.
hmmm -- maybe this should be something like Show secret
, Show text
, Show hidden text
, or Show password
? Key
seems unclear. Not sure if I would be able to understand that if I just heard a screen reader show me. Thoughts?
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.
Agreed - updated to show/hide password
which would make sense as this component is called PasswordInput
.
href="/notebookController" | ||
component="a" | ||
variant="link" | ||
onClick={(e) => { | ||
e.preventDefault(); |
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 wonder if this should not be more like the companion button on the state-filled 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.
Great point - updated in 26c978e#diff-047fef1a71926288a0e0ce5836ce60d08cdb3656469356b77cb1c2609ef958cd
@@ -36,6 +36,7 @@ const EnvTypeSelectField: React.FC<EnvTypeSelectFieldProps> = ({ | |||
onToggle={() => setOpen(!open)} | |||
selections={envVariable.type || ''} | |||
placeholderText="Select one" | |||
aria-label="Select one" |
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.
Would this not be Select environment variable type
? I get the UI doesn't say that -- not sure how much "help" we should grant to screen readers.
How much does an aria-label
need to cover "description" of what is happening rather than echoing the text I assume that would be already read by the screen reader (I have not used a screen reader to test this).
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.
The text should be updated upon rebasing https://github.com/opendatahub-io/odh-dashboard/pull/994/files.
I tested with screenreader, and it seems like PF has some issues with the current select component and the aria-label/placeholder text doesn't get called out by VO. However this will be resolved in the next major release as PF is introducing a new Select component that has the correct VO behavior @andrewballantyne
I suspect I ended up commenting on things in the other PRs... apologizes for that. |
02efe22
to
c9a0c70
Compare
c9a0c70
to
23f6950
Compare
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.
Looks great! Thanks for all your hard work.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, DaoDaoNoCode, lucferbux The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
Towards #965 , specifically DS Projects page: "1-n Projects added"
How Has This Been Tested?
Data Science Projects List - before:
![Screen Shot 2023-03-07 at 4 14 43 PM](https://user-images.githubusercontent.com/32821331/223555302-62c74643-3c7d-4e74-9ee8-a3f4252d2748.png)
Data Science Projects List - after:
![Screen Shot 2023-03-07 at 4 15 03 PM](https://user-images.githubusercontent.com/32821331/223555378-8f02409d-ec1b-4284-bb90-62ddd87887d8.png)
Test Impact
Request review criteria: