Accessibility optimization and removed redundant disabled attribute from dcm

This commit is contained in:
Henrik Larsson 2023-08-29 08:23:51 +02:00
parent 8c2e914fd6
commit f3a81d69d6
2 changed files with 2 additions and 3 deletions

View File

@ -8,10 +8,9 @@ import USPSection from '@/components/modules/usp-section/usp-section';
interface getContentComponentProps { interface getContentComponentProps {
_type: string; _type: string;
_key: number; _key: number;
disabled: boolean;
} }
const getContentComponent = ({ _type, _key, disabled, ...rest }: getContentComponentProps) => { const getContentComponent = ({ _type, _key, ...rest }: getContentComponentProps) => {
let Component: any; let Component: any;
switch (_type) { switch (_type) {

View File

@ -14,7 +14,7 @@ const CategoryCard: FC<Props> = ({ category, className }) => {
); );
return ( return (
<Link href={`${category.slug}`} className={rootClassName} aria-label={category.name}> <Link href={`${category.slug}`} className={rootClassName}>
<div className={'flex h-full w-full flex-1 flex-col justify-center'}> <div className={'flex h-full w-full flex-1 flex-col justify-center'}>
<div className="relative aspect-[3/4] h-full w-full"> <div className="relative aspect-[3/4] h-full w-full">
<SanityImage <SanityImage