Skip to content
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) O3-3187: Fix borders used to highlight abnormal vitals #1848

Merged
merged 2 commits into from
May 31, 2024
Merged

(fix) O3-3187: Fix borders used to highlight abnormal vitals #1848

merged 2 commits into from
May 31, 2024

Conversation

Twiineenock
Copy link
Contributor

@Twiineenock Twiineenock commented May 23, 2024

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This PR fixes the inconsistent borders in the vitals table.
A discussion has been going synchronously in this ticket
and on slack.

Screenshots

previously the UI looked like this
vitals-dev3

The UI looks like this with the implementation in this PR
vitals-fix

Related Issue

Vitals table border issues - O3-3187

Other

Copy link
Member

@ibacher ibacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work on this @Twiineenock! I'm hoping we can keep the change here as simple as possible.

@@ -13,12 +19,22 @@
}
}

.criticallyLow, .criticallyHigh {
.criticallyHigh span, .criticallyLow span {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the same in similar places...

Suggested change
.criticallyHigh span, .criticallyLow span {
.criticallyHigh > span, .criticallyLow > span {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibacher I have updated the PR to meet this. Thanks!

Comment on lines 31 to 33
padding-left: 1rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why doesn't, e.g., padding: 0.25rem work? Also, it would be better to use Carbon's spacing variables instead of hard-coding various paddings...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibacher the PR now has Carbon spacing variables.
I din't use padding: 0.25rem which is now $spacing-02 used padding-left: $spacing-05 to align the abnormal values in line with the normal values which were not styled.

this is how the Datable looks with padding: $spacing-02

0 25rem#

Thanks!

@denniskigen denniskigen changed the title ( fix ) O3-3187: Vitals table border issues (fix) O3-3187: Fix borders used to highlight abnormal vitals May 24, 2024
Copy link
Member

@ibacher ibacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-wise this is fine.

@ibacher
Copy link
Member

ibacher commented May 30, 2024

@cduffy2 @paulsonder Could one of you give us a thumbs up or thumbs down on the updated screen here?

@ciaranduffy
Copy link

Fine for now, I think. We can improve the visual in the future

Copy link
Member

@denniskigen denniskigen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @Twiineenock!

@denniskigen denniskigen merged commit 8bc7faf into openmrs:main May 31, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants