fix(a11y): WCAG 2.1 AA fixes (#2219)

This commit is contained in:
Philip Okugbe
2026-05-20 16:47:25 +01:00
committed by GitHub
parent 1c166c4736
commit 92c0e36e46
119 changed files with 1064 additions and 194 deletions
@@ -1,4 +1,4 @@
import { Text, SimpleGrid, Card, rem, Group, Button } from "@mantine/core";
import { Text, SimpleGrid, Card, rem, Group, Button, Title } from "@mantine/core";
import React from "react";
import {
prefetchSpace,
@@ -33,7 +33,7 @@ export default function SpaceGrid() {
>
<Card.Section className={classes.cardSection} h={40}>
<div className={classes.starButton} data-favorited={spaceFavoriteIds.has(space.id)}>
<StarButton type="space" spaceId={space.id} size={16} />
<StarButton type="space" spaceId={space.id} name={space.name} size={16} />
</div>
</Card.Section>
<CustomAvatar
@@ -59,9 +59,9 @@ export default function SpaceGrid() {
return (
<>
<Group justify="space-between" align="center" mb="md">
<Text fz="sm" fw={500}>
<Title order={2} size="h6" fw={500}>
{t("Spaces you belong to")}
</Text>
</Title>
</Group>
<SimpleGrid cols={{ base: 1, xs: 2, sm: 3 }}>{cards}</SimpleGrid>