Skip to content

Commit

Permalink
(fix) O3-2651: Fix some spacing and alignment issues in the Patient C…
Browse files Browse the repository at this point in the history
…hart (#1536)

Co-authored-by: Vineet Sharma <[email protected]>
  • Loading branch information
usamaidrsk and vasharma05 authored Dec 16, 2023
1 parent 53ce61a commit 84978d3
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const AppointmentsActionMenu = ({ appointment, patientUuid }: appointment

return (
<Layer className={styles.layer}>
<OverflowMenu aria-label="Edit or delete appointment" size={isTablet ? 'lg' : 'sm'} flipped>
<OverflowMenu aria-label="Edit or delete appointment" size={isTablet ? 'lg' : 'sm'} flipped align="left">
<OverflowMenuItem
className={styles.menuItem}
id="editAppointment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const AttachmentsTableOverview: React.FC<AttachmentsTableOverviewProps> = ({
<TableCell key={cell.id}>{cell.value?.content ?? cell.value}</TableCell>
))}
<TableCell className="cds--table-column-menu">
<OverflowMenu size={isTablet ? 'lg' : 'sm'} flipped>
<OverflowMenu size={isTablet ? 'lg' : 'sm'} flipped align="left">
<OverflowMenuItem
itemText={t('delete', 'Delete')}
isDelete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.attachmentTable > .cds--data-table-header {
display: none;
}
}

.link {
text-decoration: none;
Expand Down
5 changes: 0 additions & 5 deletions packages/esm-patient-chart-app/src/root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
scrollbar-width: none;
}

::-webkit-scrollbar {
width: 0px;
background-color: transparent
}

:global(.cds--side-nav__overlay-active) {
background-color: transparent;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ const VisitTable: React.FC<VisitTableProps> = ({ showAllEncounters, visits, pati
aria-label="Encounter table actions menu"
size={desktopLayout ? 'sm' : 'lg'}
flipped
align="left"
>
<OverflowMenuItem
size={desktopLayout ? 'sm' : 'lg'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const ConditionsActionMenu = ({ condition, patientUuid }: conditionsActio

return (
<Layer className={styles.layer}>
<OverflowMenu aria-label="Edit or delete condition" size={isTablet ? 'lg' : 'sm'} flipped>
<OverflowMenu aria-label="Edit or delete condition" size={isTablet ? 'lg' : 'sm'} flipped align="left">
<OverflowMenuItem
className={styles.menuItem}
id="editCondition"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,13 @@ function OrderBasketItemActions({
}, [items, setItems, medication, openOrderBasket]);

return (
<OverflowMenu aria-label="Actions menu" selectorPrimaryFocus={'#modify'} flipped size={isTablet ? 'lg' : 'md'}>
<OverflowMenu
aria-label="Actions menu"
selectorPrimaryFocus={'#modify'}
flipped
size={isTablet ? 'lg' : 'md'}
align="left"
>
{showModifyButton && (
<OverflowMenuItem
className={styles.menuItem}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,13 @@ function OrderBasketItemActions({
}, [items, orderItem, setItems]);

return (
<OverflowMenu ariaLabel="Actions menu" selectorPrimaryFocus={'#modify'} flipped size={isTablet ? 'lg' : 'md'}>
<OverflowMenu
ariaLabel="Actions menu"
selectorPrimaryFocus={'#modify'}
flipped
size={isTablet ? 'lg' : 'md'}
align="left"
>
<OverflowMenuItem
className={styles.menuItem}
id="modify"
Expand Down

0 comments on commit 84978d3

Please sign in to comment.