Skip to content

Commit

Permalink
fix(html): add k-sr-only span inside empty pivotgrid cell
Browse files Browse the repository at this point in the history
  • Loading branch information
TeyaVes committed Nov 13, 2024
1 parent b61c58a commit 4099d8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/html/src/pivotgrid/pivotgrid.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export type KendoPivotGridProps = {
};

const defaultOptions = {
emptyCell: <span className="k-pivotgrid-empty-cell" />,
emptyCell: <span className="k-pivotgrid-empty-cell">
<span className="k-sr-only">PivotGrid component. Use the arrow keys to navigate.</span>
</span>,
configuratorDisplay: "none",
configuratorPosition: "right"
};
Expand Down
4 changes: 3 additions & 1 deletion packages/html/src/pivotgrid/tests/pivotgrid-cell-states.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export default () => (
<section>
<PivotGridNormal
emptyCell={
<span className="k-pivotgrid-empty-cell k-focus" />
<span className="k-pivotgrid-empty-cell k-focus">
<span className="k-sr-only">PivotGrid component. Use the arrow keys to navigate.</span>
</span>
}
rowHeaders={
<PivotGridTable>
Expand Down

0 comments on commit 4099d8f

Please sign in to comment.