-
Notifications
You must be signed in to change notification settings - Fork 15
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
Style ecr-library sort #2991
Style ecr-library sort #2991
Conversation
Reviewed! Lina and I chatted about moving the filtering arrow to the far right for received date and encounter date. As the ticket calls out, due to the dynamic nature of the RCKMS summary, we had two options: (1) remove the responsive columns from RCKMS or (2) push the filtering arrows to the far right. We chose to keep the responsive columns in favor of user readability for the RCKMS summary. |
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.
Removing the highlight on the arrows is an accessibility issue. If you keyboard navigate through the viewer there is now no visual indication you are on a sort button that is interactive (Just kinda goes into the void until you end up on the names in the list)
I think you can get the no outline for pointer users, but still outline with keyboard navigators by re-adding the styles with the
|
@mcmcgrath13 @lina-roth Great callout, thank you, Mary! Looking at the component now. The default state of the table with sorting does not highlight the column. If we keep that as the default state that should work, and then if the user clicks on the column, the header could change to base-lighter, #A9AEB1. |
@mcmcgrath13 arrow isnt cutoff for me when sorting by encounter date |
@lina-roth I think the difference has to do with what the |
&.usa-button{ | ||
justify-content: flex-end; | ||
margin-left: auto; | ||
padding: .65rem .65rem .65rem .65rem; |
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.
since these are fit to an icon that is sized in px - we should probably use px here instead of rem. Inspector says the icons are 24x24
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.
done
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.
LGTM (assuming acceptance of 12px change)
thank you!!
Co-authored-by: Mary McGrath <m.c.mcgrath13@gmail.com>
PULL REQUEST
Summary
Related Issue
Fixes #2860
Acceptance Criteria
The default sort is that the table is sorted by Received Date, with the most recent eCRs at the top. The arrow next to Received Date should be pointing up by default always to indicate this sort, but the column should not be highlighted blue until somebody clicks the arrow again. Received date is already the default sort, just turn off highlightingChecklist