-
Notifications
You must be signed in to change notification settings - Fork 251
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
MF-635: Fix patient chart widget card headers #446
Conversation
h4:after { | ||
content: ""; | ||
display: block; | ||
width: 2rem; | ||
padding-top: 0.188rem; | ||
border-bottom: 0.375rem solid $brand-teal-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.
I'm thinking it might be nice to factor styles out to esm-patient-chart/esm-patient-common-lib
, if that's possible.
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.
Maybe if this CardHeader was a standalone component in esm-patient-common-lib
.
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.
Ehhhhhh up to you. We can do it in a separate PR if you think it's worth it.
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've worked on this here.
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 good. One suggestion for refactoring.
Looks like we got conflicts; feel free to merge after fixing. |
6139e20
to
5dd0dce
Compare
`useLayoutType` is being imported from the wrong package in the ErrorState component - a change mistakenly introduced in #446. As a result, an error is displayed instead of the appointments widget. This commit fixes the import and thus fixes the error.
* Fix incorrect useLayoutType import `useLayoutType` is being imported from the wrong package in the ErrorState component - a change mistakenly introduced in #446. As a result, an error is displayed instead of the appointments widget. This commit fixes the import and thus fixes the error. * Fix failing AllergyForm test This test was failing because of a missing implementation for `useLayoutType`. Despite a manual mock being available for `esm-framework`, this test suite was overriding that manual mock without providing a suitable alternative (a partial mock or similar). This commit fixes that problem by removing the partial mock of `esm-framework` and relying entirely on the already available manual mock.
Requirements
Summary
This PR changes the header designs of all the widgets in the patient chart. The card headers should have
3rem
height on the desktop viewport and4.5rem
on a tablet. Additionally, the widget titles on the card headers change depending on the viewport.Screenshots
Desktop
Empty / error state
Tablet
Issue
https://issues.openmrs.org/projects/MF/issues/MF-635