diff --git a/App/FeatureSet/Dashboard/src/Components/Dashboard/Toolbar/DashboardToolbar.tsx b/App/FeatureSet/Dashboard/src/Components/Dashboard/Toolbar/DashboardToolbar.tsx index 2351e62c45..e1e6cf30c0 100644 --- a/App/FeatureSet/Dashboard/src/Components/Dashboard/Toolbar/DashboardToolbar.tsx +++ b/App/FeatureSet/Dashboard/src/Components/Dashboard/Toolbar/DashboardToolbar.tsx @@ -189,7 +189,11 @@ const AutoRefreshDropdown: FunctionComponent = ( {/* Trigger: countdown circle when active, refresh icon when not */} @@ -333,8 +340,6 @@ const DashboardToolbar: FunctionComponent = ( }} /> -
- {/* Auto-refresh section */} = ( } /> -
- {/* Reset Zoom button */} {props.canResetZoom && props.onResetZoom && ( - <> - + } + > {props.elementToBeShownInsteadOfButton} +
{ + setIsComponentVisible(!isDropdownVisible); + }} + role="button" + tabIndex={0} + onKeyDown={(e: React.KeyboardEvent) => { + if (e.key === "Enter" || e.key === " ") { + setIsComponentVisible(!isDropdownVisible); + } + }} + > + {props.elementToBeShownInsteadOfButton} +
)} {isComponentVisible && (