SideDrawer: add aria-labels to buttons

This commit is contained in:
Sidney Alcantara
2022-10-18 15:05:11 +11:00
parent 0e7a02bf08
commit bc23b93b42

View File

@@ -141,6 +141,7 @@ export default function SideDrawer({
{!!cell && (
<div className="sidedrawer-nav-fab-container">
<Fab
aria-label="Previous row"
style={{ borderBottomLeftRadius: 0, borderBottomRightRadius: 0 }}
size="small"
disabled={disabled || !cell || selectedCellRowIndex <= 0}
@@ -150,6 +151,7 @@ export default function SideDrawer({
</Fab>
<Fab
aria-label="Next row"
style={{ borderTopLeftRadius: 0, borderTopRightRadius: 0 }}
size="small"
disabled={
@@ -164,6 +166,7 @@ export default function SideDrawer({
<div className="sidedrawer-open-fab-container">
<Fab
aria-label={open ? "Close side drawer" : "Open side drawer"}
disabled={disabled}
onClick={() => {
if (setOpen)