this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make checkboxes properly labeled for accessibility

+15 -2
+11 -1
rehype-custom-html.ts
··· 138 138 case "ul": { 139 139 node.children.forEach((x) => { 140 140 if (x.type === "element" && x.tagName === "li") { 141 - x.children.forEach((y) => { 141 + const contents = x.children.map((y) => { 142 142 if ( 143 143 y.type === "element" && 144 144 y.tagName === "input" && ··· 147 147 y.properties["aria-label"] = y.properties.checked 148 148 ? "Checked checkbox" 149 149 : "Unchecked checkbox"; 150 + return y; 150 151 }); 152 + 153 + x.children = [ 154 + { 155 + type: "element", 156 + tagName: "label", 157 + properties: {}, 158 + children: contents, 159 + }, 160 + ]; 151 161 } 152 162 }); 153 163 }
+4 -1
src/pages/blog/[id].astro
··· 297 297 298 298 /* Check lists */ 299 299 .task-list-item { 300 + list-style: none; 301 + } 302 + 303 + .task-list-item label { 300 304 display: flex; 301 305 margin-block-start: 0.5rem; 302 306 margin-block-end: 0.75rem; 303 - margin-inline-start: 1.5rem; 304 307 305 308 gap: 0.5rem; 306 309