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
Bug 1600752 - Accessibility improvements Compare and Alert Views #5733
Bug 1600752 - Accessibility improvements Compare and Alert Views #5733
Conversation
You can temporarily comment out this line for the checkbox: |
You have some failing tests :) You'll need to run |
A few notes:
|
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 so far :)
I have made some comments, mostly on what text to write on the tables. Once that's settled, I will send another commit with all the revision changes.
I'll investigate, but making the text color a little bit lighter can be a solution.
This should be solved on the next revision!
Thanks! |
@yogmel Not sure if I've mentioned this before, but please include your changes in a separate commit that's called something like "changes based on feedback". We'll squash all of the commits into one once it's merged. |
Ok! I think I remembered that from the contribution period. Also, the |
8837616
to
5ef6cf5
Compare
Codecov Report
@@ Coverage Diff @@
## master #5733 +/- ##
==========================================
+ Coverage 38.67% 38.73% +0.05%
==========================================
Files 205 205
Lines 6668 6676 +8
Branches 1425 1430 +5
==========================================
+ Hits 2579 2586 +7
- Misses 3777 3778 +1
Partials 312 312
Continue to review full report at Codecov.
|
5ef6cf5
to
b95727a
Compare
I need some help with the test failure. :(
Although there are apparently other test failing, I did a Also, there is the security check failure, but I don't know where to look. Thanks for your help! |
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.
.
Sometimes that can happen if an element can't be found, so it keeps trying to find it but it times out. I suggest checking if the 'reviewbot' text or its element has changed (will it be retrieved by the |
I don't see any tests failing on my local master branch (and this shouldn't happen because we don't merge pull requests that don't pass tests). Be sure that before branching off of your local master you |
65a6f9c
to
3c64667
Compare
Alright, the test passed. It was actually a |
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.
One little nit pick and this is ready to merge. Nice work!
fc52bf9
to
102660d
Compare
102660d
to
9afddde
Compare
@yogmel Your changes look better but there's a few class names that don't need to in the TruncatedText's Button component anymore, like This is how it used to look (aligned to the right). I think you'll need to change how the text-right and mb-0 classes are used. |
a2a9ced
to
d587efc
Compare
@sarah-clements I managed to make it look like before, with the addition of the focus style, with the classes I checked the Reactstrap documentation, but I didn't find the exact color for If I'm looking on the wrong place, please let me know. I also took some time to try again the "show links only when focused" and I'm excited to show that it worked!
|
"text-info" provides the same color as "info" (one is for font color instead of background color), so you can use "info" as the color prop. React strap uses the same CSS styles as Bootstrap, so you can find out more about the colors in those docs.
Great! Let's go with that then. |
d587efc
to
653d4fe
Compare
653d4fe
to
cba10de
Compare
@sarah-clements I came up with this solution for the TruncatedText. When there is a
|
Yes, I like this solution! This is a great way of making a component versatile and how we will frequently design generic components to work. |
Ok, I think this is ready to go :) |
Description of issue
There are a few suggested changes to improve accessibility in Perfherder's Compare and Alert Views:
Compare View:
Alert View:
Proposed Solution
As most of the tasks were straightforward, I'm going to point their location and some comments below:
ProgressBar.jsx
: According to Reactstrap Github, there are still some issues in ProgressBar element. In this element, the props are not spread, making it not possible to insert morearia-
attributes. The proposed solution is to insert anaria-label
on the wrapper ProgressBar, insert a.sr-only
<span>
element with the description and insert a Table Header inCompareTable.jsx:127
.CompareTable.jsx
perf.css:272:303
: I tried to show the links only when the table was focused, but the:focus
attribute didn't work very well. The table may have become visually busy.AlertTableRow.jsx:211:216
: an id was needed to link the Label's for attribute.AlertHeader.jsx
: and additional css was needed to keep style inperf.css:260:263
AlertTable.jsx
: I may need some guidance on what the header titles should read.AlertTableRow.jsx:232:238
: Utilities classes were needed to keep same style.P.S.: An additional commit was created because
yarn lint
returnedUnused eslint-disable directive
. This can be squashed into another commit if needed.Testing
For both Views, visual test was made to make sure their layout was the same as before, except from what was requested.
With the screen reader (SR), navigation on the changed elements was made. It was also tested the headings navigation for 2b.
Compare View:
Link used to testing or any with results available can be used.
Alerts View: