catalog: switch table srOnly labels back to Typography

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-11-14 10:55:54 +01:00
parent 88d9ab371f
commit 2a636a95b8
@@ -34,6 +34,7 @@ import {
useEntityList,
useStarredEntities,
} from '@backstage/plugin-catalog-react';
import Typography from '@material-ui/core/Typography';
import { withStyles } from '@material-ui/core/styles';
import { visuallyHidden } from '@mui/utils';
import Edit from '@material-ui/icons/Edit';
@@ -146,8 +147,7 @@ export const CatalogTable = (props: CatalogTableProps) => {
return {
icon: () => (
<>
{/* eslint-disable-next-line react/forbid-elements */}
<span style={visuallyHidden}>{title}</span>
<Typography style={visuallyHidden}>{title}</Typography>
<OpenInNew fontSize="small" />
</>
),
@@ -166,8 +166,7 @@ export const CatalogTable = (props: CatalogTableProps) => {
return {
icon: () => (
<>
{/* eslint-disable-next-line react/forbid-elements */}
<span style={visuallyHidden}>{title}</span>
<Typography style={visuallyHidden}>{title}</Typography>
<Edit fontSize="small" />
</>
),
@@ -187,8 +186,7 @@ export const CatalogTable = (props: CatalogTableProps) => {
cellStyle: { paddingLeft: '1em' },
icon: () => (
<>
{/* eslint-disable-next-line react/forbid-elements */}
<span style={visuallyHidden}>{title}</span>
<Typography style={visuallyHidden}>{title}</Typography>
{isStarred ? <YellowStar /> : <StarBorder />}
</>
),