mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 09:17:06 +08:00
fix(a11y): WCAG 2.1 AA fixes (#2219)
This commit is contained in:
@@ -19,6 +19,7 @@ import { getSpaceUrl } from "@/lib/config";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { getInitialsColor } from "@/lib/get-initials-color";
|
||||
import PageListSkeleton from "@/components/ui/page-list-skeleton";
|
||||
import rowClasses from "@/components/ui/clickable-table-row.module.css";
|
||||
|
||||
export default function FavoritesPage() {
|
||||
const { t } = useTranslation();
|
||||
@@ -49,7 +50,7 @@ export default function FavoritesPage() {
|
||||
|
||||
return (
|
||||
<Container size={800} py="xl">
|
||||
<Title order={3} mb="lg">
|
||||
<Title order={1} size="h3" mb="lg">
|
||||
{t("Favorites")}
|
||||
</Title>
|
||||
{favorites.length > 0 ? (
|
||||
@@ -59,9 +60,10 @@ export default function FavoritesPage() {
|
||||
<Table.Tbody>
|
||||
{favorites.map((fav) =>
|
||||
fav.page ? (
|
||||
<Table.Tr key={fav.id}>
|
||||
<Table.Tr key={fav.id} className={rowClasses.row}>
|
||||
<Table.Td>
|
||||
<UnstyledButton
|
||||
className={rowClasses.link}
|
||||
component={Link}
|
||||
to={buildPageUrl(
|
||||
fav.space?.slug,
|
||||
|
||||
@@ -30,7 +30,7 @@ export default function Spaces() {
|
||||
|
||||
<Container size={"800"} pt="xl">
|
||||
<Group justify="space-between" mb="xl">
|
||||
<Title order={3}>{t("Spaces")}</Title>
|
||||
<Title order={1} size="h3">{t("Spaces")}</Title>
|
||||
{isAdmin && <CreateSpaceModal />}
|
||||
</Group>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user