-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat O3-4236: Improvements on the UI, Button Hierarchy and Placement …
…in Order Expansion View (#103) * Ui improvements * (refactor) updated the translation
- Loading branch information
1 parent
5579a42
commit 45ad4c7
Showing
14 changed files
with
222 additions
and
122 deletions.
There are no files selected for viewing
150 changes: 110 additions & 40 deletions
150
src/components/orders-table/list-order-details.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,99 @@ | ||
@use '@carbon/layout'; | ||
@use '@carbon/colors'; | ||
@use '@openmrs/esm-styleguide/src/vars' as *; | ||
@use '@carbon/type'; | ||
.buttonSection { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding-top: layout.$spacing-03; | ||
width: 100%; | ||
gap: 10rem; | ||
} | ||
|
||
.nameOrder { | ||
font-size: type.type-scale(2); | ||
margin-left: layout.$spacing-04; | ||
} | ||
.testOrder { | ||
font-size: type.type-scale(2); | ||
font-weight: bold; | ||
} | ||
|
||
.orderTile { | ||
.actionButtons { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
width: 100%; | ||
margin: 2px 0 8px; | ||
padding: 0 8px 0 8px; | ||
background-color: colors.$white-0; | ||
border-left: 4px solid var(--brand-03); | ||
color: $text-02; | ||
margin-bottom: 1rem !important; | ||
} | ||
|
||
&:hover { | ||
background-color: colors.$white-hover; | ||
} | ||
.testsOrderedActions { | ||
margin-left: auto; | ||
display: flex; | ||
} | ||
|
||
.ordersContainer { | ||
.rejectButton { | ||
margin-right: auto; | ||
display: flex; | ||
flex-direction: column; | ||
max-width: 100%; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
&:global(.cds--tile) { | ||
min-height: 3rem !important; | ||
padding-left: 10px !important; | ||
} | ||
.menuLink { | ||
display: inline-flex; | ||
} | ||
|
||
.ordersContainer > :global(.cds--tile) { | ||
min-height: 3rem !important; | ||
padding-left: 10px !important; | ||
margin: auto; | ||
.orderDetailsContainer { | ||
width: 80%; | ||
display: flex; | ||
flex-direction: column; | ||
padding: layout.$spacing-05; | ||
margin-left: layout.$spacing-13; | ||
background-color: colors.$white-0; | ||
margin: layout.$spacing-05 0; | ||
} | ||
|
||
.orderPropertyDisplay { | ||
font-size: 15px !important; | ||
.orderUrgency { | ||
display: flex; | ||
justify-content: flex-end; | ||
width: 100%; | ||
padding: 0 layout.$spacing-03; | ||
margin-bottom: layout.$spacing-03; | ||
} | ||
|
||
.bodyLong01 { | ||
font-size: 13px !important; | ||
.orderHeader { | ||
display: flex; | ||
justify-content: space-between; | ||
width: 100%; | ||
padding: 0; | ||
margin-bottom: layout.$spacing-03; | ||
} | ||
.orderNumber { | ||
font-size: type.type-scale(2); | ||
} | ||
.orderStatus { | ||
font-size: type.type-scale(2); | ||
} | ||
|
||
.displayValue { | ||
color: #525252; | ||
font-weight: bold; | ||
width: layout.$spacing-05; | ||
height: layout.$spacing-05; | ||
.orderDate { | ||
text-align: right; | ||
font-size: type.type-scale(2); | ||
} | ||
|
||
.actionButtons { | ||
margin-left: layout.$spacing-05; | ||
margin-top: layout.$spacing-07; | ||
.instructions { | ||
text-align: justify; | ||
font-size: type.type-scale(1); | ||
} | ||
.urgencyStatus { | ||
font-size: type.type-scale(2); | ||
} | ||
.instructionLabel { | ||
font-weight: bold; | ||
font-size: type.type-scale(2); | ||
} | ||
|
||
.accordionContainer { | ||
margin-top: layout.$spacing-03; | ||
.labResultSlot { | ||
text-align: center; | ||
margin-bottom: layout.$spacing-03; | ||
} | ||
.accordionTitle { | ||
font-weight: bold; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
@use '@carbon/styles/scss/type'; | ||
@use '@carbon/type'; | ||
@use '@carbon/styles/scss/spacing'; | ||
@use '@carbon/layout'; | ||
@use '@carbon/colors'; | ||
|
||
.actionButton { | ||
margin-top: layout.$spacing-01; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
padding: 0 layout.$spacing-04; | ||
font-size: type.type-scale(2); | ||
} | ||
.actionRejectButton { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
padding: 0 layout.$spacing-04; | ||
font-size: type.type-scale(2); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.