Skip to content

Commit

Permalink
(feat) Delay display of menu item tooltips by 500ms (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored Nov 17, 2022
1 parent c806132 commit 0d8dd16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function Root() {
<HeaderGlobalAction
aria-label="Add Patient"
aria-labelledby="Add Patient"
enterDelayMs={500}
name="AddPatientIcon"
onClick={addPatient}
className={styles.slotStyles}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const PatientSearchLaunch: React.FC<PatientSearchLaunchProps> = () => {
aria-label={t('searchPatient', 'Search Patient')}
aria-labelledby="Search Patient"
className={`${showSearchInput ? styles.activeSearchIconButton : styles.searchIconButton}`}
enterDelayMs={500}
name="SearchPatientIcon"
onClick={handleGlobalAction}>
{showSearchInput ? <Close size={20} /> : <Search size={20} />}
Expand Down

0 comments on commit 0d8dd16

Please sign in to comment.