@samitouri / QOSami-HFS / commits / c85f5dcd

a11y: problem with admin-panel icon-buttons and jaws

Massimo Melina committed Mar 19, 2024 at 10:10 UTC c85f5dcd4dfc49408f67eef72710dce23e565570
1 file changed +1 -1
admin/src/mui.ts
+1 -1
@@ -168,7 +168,7 @@ export const Btn = forwardRef(({ icon, title, onClick, disabled, progress, link,
168 : h(CircularProgress, { size: '1rem', value: progress*100, variant: 'determinate' }),
169 children: showLabel && children,
170 } as const, common, !showLabel && { sx: { minWidth: 'auto', px: 1, py: '7px', '& span': { mx:0 }, } }))
171 - : h(IconButton, _.merge(common, { sx: { height: 'fit-content' } }),
171 + : h(IconButton, _.merge(common, { sx: { height: 'fit-content' }, TouchRippleProps: { 'aria-hidden': true } }),
172 (progress || loadingState) && progress !== false // false is also useful to inhibit behavior with loading
173 && h(CircularProgress, {
174 ...(typeof progress === 'number' ? { value: progress*100, variant: 'determinate' } : null),