Add programmatic label to the namespace links

Pushed-by: Florian Scholdei<florian.scholdei@cloudogu.com>
Co-authored-by: Florian Scholdei<florian.scholdei@cloudogu.com>
This commit is contained in:
Florian Scholdei
2024-11-25 14:44:34 +01:00
parent 0a8ffa8443
commit 531de24fa5
4 changed files with 10 additions and 1 deletions

View File

@@ -32,7 +32,12 @@ const DefaultGroupHeader: FC<{ group: RepositoryGroup }> = ({ group }) => {
return (
<>
<Link to={`/repos/${group.name}/`} className="has-text-inherit">
<h3 className="has-text-weight-bold">{group.name}</h3>
<h3 className="has-text-weight-bold">
<span className="is-sr-only" lang="en">
{t("repositoryOverview.namespace")}
</span>
{group.name}
</h3>
</Link>{" "}
<Link to={`/namespace/${group.name}/info`} aria-label={t("repositoryOverview.settings.tooltip")}>
<Icon color="inherit" name="cog" title={t("repositoryOverview.settings.tooltip")} className="is-size-6 ml-2" />