File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,15 +128,16 @@ export default function Heatmap({
128128 height : ( 7 * ( CELL + GAP ) - GAP ) * scale ,
129129 } }
130130 >
131- < div className = "flex" style = { { gap : GAP } } >
131+ < div className = "flex" role = "grid" style = { { gap : GAP } } >
132132 { weeks . map ( ( week , wIndex ) => (
133- < div key = { wIndex } className = "flex flex-col" style = { { gap : GAP } } >
133+ < div key = { wIndex } className = "flex flex-col" role = "row" style = { { gap : GAP } } >
134134 { week . map ( ( day , dIndex ) => {
135135 const originalIndex = wIndex * 7 + dIndex ;
136136
137137 return (
138138 < div
139139 key = { day . date }
140+ role = "gridcell"
140141 aria-label = { `${ getContributionLabel (
141142 day . count
142143 ) } on ${ formatTooltipDate ( day . date ) } `}
@@ -179,4 +180,4 @@ export default function Heatmap({
179180 </ AnimatePresence >
180181 </ >
181182 ) ;
182- }
183+ }
You can’t perform that action at this time.
0 commit comments