mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
Accessibility optimization and removed redundant disabled attribute from dcm
This commit is contained in:
parent
8c2e914fd6
commit
f3a81d69d6
@ -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) {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user