Skip to content

Commit

Permalink
Added aria-live for navigating pages
Browse files Browse the repository at this point in the history
  • Loading branch information
amyyeung17 committed Jul 1, 2024
1 parent f38178d commit 7567860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/PropertyDetailSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ const PropertyDetailSection: FC<PropertyDetailSectionProps> = ({
) : (
<>
<div className="flex flex-wrap flex-grow h-full min-h-[calc(100svh-101px)] max-h-[calc(100svh-101px)] mt-2">
<div aria-live="polite" className="absolute left-[-9999px]" role="status"> You are on page {page} </div>
{display === "list" ? (
<Table
aria-label="Property Details"
Expand Down

0 comments on commit 7567860

Please sign in to comment.