Skip to content

Commit 93f30d9

Browse files
committed
feat: use hidden attribute instead of aria-hidden for the zoom reset button when at initial zoom level
1 parent 2952d6b commit 93f30d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • code/core/src/manager/components/preview/tools

code/core/src/manager/components/preview/tools/zoom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ export const Zoom = memo<{
9090
<ZoomResetButton
9191
size="small"
9292
padding="small"
93+
hidden={value === INITIAL_ZOOM_LEVEL}
9394
$isInitialValue={value === INITIAL_ZOOM_LEVEL}
9495
onClick={() => zoomTo(INITIAL_ZOOM_LEVEL)}
9596
ariaLabel="Reset zoom"
96-
aria-hidden={value === INITIAL_ZOOM_LEVEL}
9797
>
9898
<UndoIcon />
9999
</ZoomResetButton>

0 commit comments

Comments
 (0)