Skip to content

Commit

Permalink
(feat) O3-3683: Add aria-labels to Start and End visit buttons in the…
Browse files Browse the repository at this point in the history
… visit header (#1946)

(enhc) : add aria-label property for buttons

Co-authored-by: Dennis Kigen <kigen.work@gmail.com>
  • Loading branch information
Vijaykv5 and denniskigen authored Aug 1, 2024
1 parent 96a823e commit 866afa7
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,21 @@ const VisitHeader: React.FC = () => {
<>
<ExtensionSlot name="visit-header-right-slot" />
{!isLoading && !currentVisit && !isDeceased && (
<Button className={styles.startVisitButton} onClick={launchStartVisitForm} size="lg">
<Button
className={styles.startVisitButton}
onClick={launchStartVisitForm}
size="lg"
aria-label={t('startAVisit', 'Start a visit')}
>
{t('startAVisit', 'Start a visit')}
</Button>
)}
{!isLoading && !!currentVisit && (
<Button onClick={() => openModal(patient?.id)} className={styles.startVisitButton}>
<Button
onClick={() => openModal(patient?.id)}
className={styles.startVisitButton}
aria-label={t('endVisit', 'End visit')}
>
{t('endVisit', 'End visit')}
</Button>
)}
Expand Down

0 comments on commit 866afa7

Please sign in to comment.