fix(accessibility): add aria-labels for improved screen reader support
This commit is contained in:
@@ -40,6 +40,7 @@ function SendReq({ filter, setFilter, setDataInURL, sendReq }) {
|
||||
<Button
|
||||
disabled={loading}
|
||||
onClick={filterData}
|
||||
aria-label="جستجوی پزشک"
|
||||
className="!flex !m-1 !rounded-[4px] !w-[36px] sm:!w-[42px] md:!w-[49px] lg:!w-[56px] !min-w-[36px] sm:!min-w-[42px] md:!min-w-[49px] lg:!min-w-[56px]
|
||||
!gap-2.5 !p-2.5 md:!p-4 !h-[calc(100%_-_8px)]"
|
||||
>
|
||||
|
||||
@@ -21,6 +21,7 @@ function SelectSort({ filter, updateData }) {
|
||||
displayEmpty
|
||||
value={filter.sort}
|
||||
onChange={handleClick}
|
||||
inputProps={{ "aria-label": "مرتب سازی پزشکان بر اساس امتیاز" }}
|
||||
className="!w-[198px] !max-w-[305px] lg:!w-full text-[14px] md:text-[16px] !bg-transparent lg:!bg-[#FFF] !h-[44px] sm:!h-[50px] md:!h-[57px] lg:!h-[64px]"
|
||||
renderValue={(value) => {
|
||||
return (
|
||||
|
||||
@@ -148,7 +148,7 @@ function Footer({ matchedCity }) {
|
||||
{item.icon}
|
||||
</a>
|
||||
) : (
|
||||
<span className="min-h-fit" aria-label={item.name}>
|
||||
<span className="min-h-fit" role="img" aria-label={item.name}>
|
||||
{item.icon}
|
||||
</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user