Skip to content

Commit

Permalink
Fix keyboard nav
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed Feb 21, 2024
1 parent 5be354c commit 5d5ddb0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 12 additions & 4 deletions teachertool/src/components/CriteriaTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ const CriteriaInstanceRow: React.FC<CriteriaInstanceDisplayProps> = ({ criteriaI
}

return catalogCriteria ? (
<div className={css["criteria-instance-display"]} role="row" tabIndex={0}>
<div className={css["criteria-instance-display"]} role="row">
<div className={classList(css["cell"], css["criteria-text-cell"])} role="cell">
{catalogCriteria.template}
</div>
<div className={classList(css["cell"], css["criteria-action-menu-cell"])} role="cell">
<div
className={classList(css["cell"], css["criteria-action-menu-cell"])}
role="cell"
aria-label={Strings.Actions}
>
<Button
label={<i className="far fa-trash-alt" />}
className={css["delete-criteria-button"]}
Expand All @@ -45,10 +49,14 @@ 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">
<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">
<div
className={classList(css["cell"], css["criteria-action-menu-cell"])}
role="columnheader"
aria-label={Strings.Actions}
>
{/* Intentionally left empty */}
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions teachertool/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export namespace Strings {
export const Name = lf("Name");
export const RubricName = lf("Rubric Name");
export const AddCriteria = lf("Add Criteria");
export const Actions = lf("Actions");
}

export namespace Ticks {
Expand Down

0 comments on commit 5d5ddb0

Please sign in to comment.