From 12d2e2e3f10719b983005e7ce8fa8f931026ae5c Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Sun, 21 Jun 2026 17:47:23 +0330 Subject: [PATCH] fix(logo): add aria-labels and improve accessibility features in Logo component fix(progress): enhance accessibility by adding aria-label to LinearProgress component fix(share): add aria-label for better accessibility in Share button fix(title): change h3 to h2 for semantic correctness and add aria-labels for links fix(qrimg): add alt text for QR code image for improved accessibility fix(buttonmenu): add aria-label for mobile menu button to enhance accessibility --- app/component/Logo.js | 16 ++++++++++++---- app/component/ProfressDetail.js | 1 + components/doctor/detailDoctor/Share.js | 1 + components/doctor/detailDoctor/Title.js | 5 +++-- components/doctor/poster/QrImg.js | 2 +- components/layout/header/list/col/ButtonMenu.js | 1 + 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/app/component/Logo.js b/app/component/Logo.js index 9928a04..7817d3d 100644 --- a/app/component/Logo.js +++ b/app/component/Logo.js @@ -3,19 +3,27 @@ import Link from "next/link"; import React from "react"; function Logo({ isAbsolute, matchedCity }) { + const siteName = + matchedCity?.site_name || + (matchedCity?.name ? `${matchedCity.name} نوبت` : "نوبت ۷۲۴"); return ( - +
logo

- {matchedCity?.site_name || - (matchedCity?.name ? `${matchedCity.name} نوبت` : "نوبت ۷۲۴")} + {siteName}

diff --git a/app/component/ProfressDetail.js b/app/component/ProfressDetail.js index 0e0a5d5..7955681 100644 --- a/app/component/ProfressDetail.js +++ b/app/component/ProfressDetail.js @@ -21,6 +21,7 @@ function ProgressDetail({ data, idx }) { diff --git a/components/doctor/detailDoctor/Title.js b/components/doctor/detailDoctor/Title.js index 1c4267b..70c6d45 100644 --- a/components/doctor/detailDoctor/Title.js +++ b/components/doctor/detailDoctor/Title.js @@ -39,13 +39,13 @@ function Title({ doctor }) { -

+

تخصص: {doctor?.specialties?.map( (item, idx) => `${item.name} ${doctor.specialties.length === idx + 1 ? "" : "|"} ` )} -

+
@@ -92,6 +92,7 @@ function Title({ doctor }) { href={url} target="_blank" rel="noopener noreferrer" + aria-label={key} className="flex items-center justify-center p-1.5 rounded-full bg-[#F8F8FF]" > diff --git a/components/doctor/poster/QrImg.js b/components/doctor/poster/QrImg.js index 5e30d61..57a5b94 100644 --- a/components/doctor/poster/QrImg.js +++ b/components/doctor/poster/QrImg.js @@ -21,7 +21,7 @@ export default function QrImg() { return (
{qrCodeData ? ( - + کد QR پروفایل پزشک ) : (

در حال بارگذاری...

)} diff --git a/components/layout/header/list/col/ButtonMenu.js b/components/layout/header/list/col/ButtonMenu.js index 3ee939d..a8f997c 100644 --- a/components/layout/header/list/col/ButtonMenu.js +++ b/components/layout/header/list/col/ButtonMenu.js @@ -4,6 +4,7 @@ function ButtonMenu({ isActive, setIsActive }) { return (