Skip to content

Commit

Permalink
🎨 - refactor: accessability improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Roeland committed Dec 13, 2024
1 parent 3c98c35 commit f36dc73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/data/attributetable/attributetable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const AttributeTable = <T extends object = object>({

return (
<div
role="table"
className={clsx(
"mykn-attributetable",
`mykn-attributetable--valign-${valign}`,
Expand Down Expand Up @@ -209,13 +210,15 @@ export const AttributeTableRow = <T extends object = object>({
className={clsx("mykn-attributetable__row", {
"mykn-attributetable--compact": compact,
})}
role="row"
>
<div
className={clsx(
"mykn-attributetable__cell",
"mykn-attributetable__cell--key",
{ "mykn-attributetable--compact": compact },
)}
role="cell"
>
{isEditing ? <label htmlFor={`${id}_input`}>{label}</label> : label}
</div>
Expand Down

0 comments on commit f36dc73

Please sign in to comment.