fix(accessibility): add aria-labels for improved screen reader support

This commit is contained in:
hamed
2026-06-21 17:00:23 +03:30
parent cbae19d270
commit 35e8b65342
5 changed files with 13 additions and 3 deletions
+6 -2
View File
@@ -75,7 +75,7 @@ function ItemDoctor({ doctor, loading, setDoctors, priority = false }) {
<div className="flex my-4 items-center justify-start gap-0.5">
<ClockD />
<TextLoading loading={loading} width={150} height={15}>
<p className="text-[#7E7E7E] text-[12px] font-normal">
<p className="text-[#616161] text-[12px] font-normal">
ساعت کاری: {doctor?.hours_of_work}
</p>
</TextLoading>
@@ -92,11 +92,15 @@ function ItemDoctor({ doctor, loading, setDoctors, priority = false }) {
</p>
</CustomLoading>
{/* Arrow */}
<Link href={`/doctor/${doctor?.uuid}`}>
<Link
href={`/doctor/${doctor?.uuid}`}
aria-label={`مشاهده پروفایل ${doctor?.name || "پزشک"}`}
>
<Button
variant="contained"
onClick={handleLoading}
disabled={doctor?.loading}
aria-label={`مشاهده پروفایل ${doctor?.name || "پزشک"}`}
className="!p-[14px] !absolute !left-4 !bottom-4 !rounded-full !w-fit"
>
<div className={doctor && doctor.loading ? "opacity-0" : ""}>
@@ -80,6 +80,10 @@ function AddressSelector({
</div>
),
}}
inputProps={{
...params.inputProps,
"aria-label": label,
}}
placeholder={label}
sx={{
borderRadius: "8px",