fix(accessibility): add aria-labels for improved screen reader support
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user