perf(mobile): add cart aria-label, fix heading levels h3, and remove duplicate font network chains
Deploy Canina / deploy (push) Successful in 2m2s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 8s

This commit is contained in:
parsa aghaei committed 2026-09-02 14:21:11 +03:30
1 parent 98e20269a3
commit 062718fb84
5 files changed
+16 -84

No files matched your search

@@ -44,9 +44,9 @@ export default function BannerPlacement({
{(banner.title || banner.subtitle) && (
<div className="absolute inset-0 bg-gradient-to-t from-black/80 via-black/30 to-transparent p-6 flex flex-col justify-end text-white text-right pointer-events-none">
{banner.title && (
<h4 className="text-lg sm:text-xl font-black mb-1 leading-tight">
<h3 className="text-lg sm:text-xl font-black mb-1 leading-tight">
{banner.title}
</h4>
</h3>
)}
{banner.subtitle && (
<p className="text-xs sm:text-sm text-medical-gray-200 font-bold opacity-90 line-clamp-2">
@@ -106,9 +106,9 @@ export default function BannerPlacement({
{(banner.title || banner.subtitle) && (
<div className="absolute inset-0 bg-gradient-to-l from-black/80 via-black/40 to-transparent p-6 sm:p-10 flex flex-col justify-center text-white text-right pointer-events-none">
{banner.title && (
<h4 className="text-xl sm:text-3xl font-black mb-2 leading-tight">
<h3 className="text-xl sm:text-3xl font-black mb-2 leading-tight">
{banner.title}
</h4>
</h3>
)}
{banner.subtitle && (
<p className="text-xs sm:text-base text-medical-gray-200 font-bold max-w-xl">
+2 -1
View File
@@ -372,7 +372,8 @@ export default function Header({
<button
data-testid="cart-header-btn"
onClick={onCartOpen}
className="relative px-3.5 py-2 bg-canina-blue text-white rounded-xl text-xs font-black hover:bg-medical-gray-900 transition-all flex items-center gap-2 shadow-sm"
aria-label="سبد خرید"
className="relative px-3.5 py-2 bg-canina-blue text-white rounded-xl text-xs font-black hover:bg-medical-gray-900 transition-all flex items-center gap-2 shadow-sm cursor-pointer"
>
<ShoppingBag className="w-4 h-4" />
<span className="hidden sm:inline">سبد خرید</span>
@@ -135,9 +135,9 @@ export default function TestimonialsSection() {
)}
</div>
<div>
<h4 className="font-extrabold text-sm text-medical-gray-900 leading-tight">
<h3 className="font-extrabold text-sm text-medical-gray-900 leading-tight">
{item.authorName}
</h4>
</h3>
{item.roleTitle && (
<p className="text-xs text-canina-blue font-bold mt-0.5">
{item.roleTitle}
@@ -160,9 +160,9 @@ export default function VetGallery({ testimonials = [] }: { testimonials?: Testi
</div>
)}
</div>
<h4 className="text-lg font-black text-medical-gray-900 mb-2 group-hover:text-canina-blue transition-colors leading-tight font-vazir">
<h3 className="text-lg font-black text-medical-gray-900 mb-2 group-hover:text-canina-blue transition-colors leading-tight font-vazir">
{video.title}
</h4>
</h3>
<div className="flex items-center gap-2 text-medical-gray-500 font-bold text-sm font-vazir">
<ShieldCheck className="w-4 h-4 text-canina-blue" />
{video.doctor || 'کادر علمی کنینا'}