Skip to content

Commit

Permalink
cell a11y todo [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
icecream17 authored Feb 27, 2024
1 parent 5aaa96f commit 59ea93f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Elems/MainElems/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,10 @@ export default class Cell extends React.Component<CellProps, CellState> {

const className = this.state.classes?.concat(['Cell']).join(' ') ?? 'Cell'

// TODO: contenteditable attribute on td will cause it to be editable and tab-focusable
// However there is no easy way to describe the custom text field
// 1. inner div to separate aria roles
// and because <button> elements cannot contain tables
// and because <button> elements cannot contain block elements
// 2. tabIndex for focusability
// ="0" because of a11y thing
return (
Expand Down

0 comments on commit 59ea93f

Please sign in to comment.