Skip to content

Commit

Permalink
UI brush ups
Browse files Browse the repository at this point in the history
  • Loading branch information
arodidev committed Aug 2, 2024
1 parent 7378c50 commit 322a720
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext, useState, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { Accordion, AccordionItem, Button, Checkbox, Search } from '@carbon/react';
import { Accordion, AccordionItem, Button, Checkbox } from '@carbon/react';
import { useConfig, useLayoutType } from '@openmrs/esm-framework';
import type { FilterNodeProps, FilterLeafProps } from './filter-types';
import { FilterEmptyState } from '../ui-elements/resetFiltersEmptyState/filter-empty-state.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@

.cds--accordion__item--active>.cds--accordion__content {
display: block;
padding-right: spacing.$spacing-05
}

.cds--accordion__title {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const ResultsViewer: React.FC<ResultsViewerProps> = ({ patientUuid, basePath, lo
const isTablet = useLayoutType() === 'tablet';
const [view, setView] = useState<viewOpts>('split');
const [selectedSection, setSelectedSection] = useState<panelOpts>('tree');
const { totalResultsCount } = useContext(FilterContext);
const { totalResultsCount, resetTree } = useContext(FilterContext);
const { type, testUuid } = useParams();
const isExpanded = view === 'full';
const trendlineView = testUuid && type === 'trendline';
Expand Down Expand Up @@ -130,7 +130,7 @@ const ResultsViewer: React.FC<ResultsViewerProps> = ({ patientUuid, basePath, lo
className={styles.button}
kind="ghost"
size={isTablet ? 'md' : 'sm'}
onClick={''} //TO-DO (undo selections fix)
onClick={resetTree} //TO-DO (undo selections fix)
>
<span>{t('reset', 'Reset')}</span>
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
}

.leftSection {
//determine appropriate way to tackle div sizing for the two containers on the homepage and handle the spacing on the side
width: 300px;
margin-right: layout.$spacing-05;
}
Expand All @@ -68,7 +67,6 @@
}

.leftHeaderActions {
// leftHeaderActions class apply also on tablet mode, cleanup after
display: flex;
min-width: 2.5rem;
}
Expand Down Expand Up @@ -97,7 +95,6 @@
}

.filterSetHeader {
//deprecated
display: flex;
justify-content: space-between;
align-items: center;
Expand Down

0 comments on commit 322a720

Please sign in to comment.