Skip to content

Commit

Permalink
Add rowgroup roles
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed Feb 21, 2024
1 parent 5d5ddb0 commit 61b40c9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions teachertool/src/components/CriteriaTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,21 @@ const CriteriaTableControl: React.FC<CriteriaTableProps> = ({}) => {

return teacherTool.rubric.criteria?.length > 0 ? (
<div className={css["criteria-table"]} role="table" aria-label={Strings.Criteria}>
<div className={css["criteria-header"]} role="row">
<div className={classList(css["cell"], css["criteria-text-cell"])} role="columnheader" tabIndex={0}>
{Strings.Criteria}
</div>
<div
className={classList(css["cell"], css["criteria-action-menu-cell"])}
role="columnheader"
aria-label={Strings.Actions}
>
{/* Intentionally left empty */}
<div role="rowgroup">
<div className={css["criteria-header"]} role="row">
<div className={classList(css["cell"], css["criteria-text-cell"])} role="columnheader" tabIndex={0}>
{Strings.Criteria}
</div>
<div
className={classList(css["cell"], css["criteria-action-menu-cell"])}
role="columnheader"
aria-label={Strings.Actions}
>
{/* Intentionally left empty */}
</div>
</div>
</div>
<div className={css["criteria-table-body"]}>
<div className={css["criteria-table-body"]} role="rowgroup">
{teacherTool.rubric.criteria.map(criteriaInstance => {
return (
<CriteriaInstanceRow criteriaInstance={criteriaInstance} key={criteriaInstance.instanceId} />
Expand Down

0 comments on commit 61b40c9

Please sign in to comment.