Skip to content

Commit

Permalink
(fix) Test results viewer content switcher text UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Sep 20, 2024
1 parent 308cd15 commit 7176d47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const ResultsViewer: React.FC<ResultsViewerProps> = ({ patientUuid, basePath, lo
totalResultsCount ? `(${totalResultsCount})` : ''
}`}</h4>
<div className={styles.leftHeaderActions}>
<p>{t('view', 'View')} : </p>
<p>{t('view', 'View')}: </p>
<ContentSwitcher
selectedIndex={['panel', 'tree'].indexOf(selectedSection)}
onChange={({ name }: { name: panelOpts }) => setSelectedSection(name)}
Expand Down Expand Up @@ -140,7 +140,7 @@ const ResultsViewer: React.FC<ResultsViewerProps> = ({ patientUuid, basePath, lo
<h4 className={styles.viewOptionsText}>{`${t('results', 'Results')} ${
totalResultsCount ? `(${totalResultsCount})` : ''
}`}</h4>
<p className={styles.viewOptionsSubHeading}>{t('view', 'View')} : </p>
<p className={styles.viewOptionsSubHeading}>{t('view', 'View')}: </p>
<ContentSwitcher
className={styles.viewOptionsSwitcher}
onChange={({ name }: { name: viewOpts }) => setView(name)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
display: grid;
grid-template-columns: 1fr auto auto;
align-items: center;
gap: 10px;
gap: 0.625rem;
}

.viewOptionsText {
Expand Down Expand Up @@ -96,6 +96,8 @@
.leftHeaderActions {
display: flex;
min-width: layout.$spacing-08;
align-items: center;
gap: 0.625rem;
}

.leftHeaderActions > :global(.cds--content-switcher),
Expand Down

0 comments on commit 7176d47

Please sign in to comment.