4
0
forked from crowetic/commerce

a11y pass

This commit is contained in:
Belen Curcio 2020-10-25 11:00:34 -03:00
parent f2997c2519
commit 4784c06105
4 changed files with 3 additions and 5 deletions

View File

@ -54,7 +54,7 @@ const CartItem = ({
setQuantity(item.quantity)
}
}, [item.quantity])
console.log(item)
return (
<li className="flex flex-row space-x-8 py-8">
<div className="w-16 h-16 bg-violet relative overflow-hidden">

View File

@ -15,7 +15,7 @@ const Searchbar: FC<Props> = ({ className }) => {
}, [])
return (
<div
<label
className={cn(
'relative text-sm bg-accents-1 text-base w-full transition-colors duration-150',
className
@ -51,7 +51,7 @@ const Searchbar: FC<Props> = ({ className }) => {
/>
</svg>
</div>
</div>
</label>
)
}

View File

@ -112,7 +112,6 @@ const ProductView: FC<Props> = ({ product, className }) => {
label={v.label}
onClick={() => {
setChoices((choices) => {
console.log(choices)
return {
...choices,
[opt.displayName]: v.label,

View File

@ -1,7 +1,6 @@
import type { ProductNode } from '@lib/bigcommerce/api/operations/get-product'
export function getProductOptions(product: ProductNode) {
// console.log(product)
const options = product.productOptions.edges?.map(({ node }: any) => ({
displayName: node.displayName.toLowerCase(),
values: node.values.edges?.map(({ node }: any) => node),