Skip to content

Commit

Permalink
Merge pull request #724 from amyyeung17/318-properties-a11y
Browse files Browse the repository at this point in the history
Fix #318: Renamed "Properties in View" and added item count
  • Loading branch information
bacitracin authored Jul 2, 2024
2 parents 6a7fb15 + 222a038 commit 674ec6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/PropertyDetailSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ const PropertyDetailSection: FC<PropertyDetailSectionProps> = ({
disableCursorAnimation={true}
></Pagination>
</div>
<p className="text-center mt-4">
{`${((page - 1) * 6) + 1} to ${page === pages ? featuresInView.length : (page * 6)} of ${featuresInView.length}`}
</p>
<div className="flex w-full justify-center py-4 px-6">
<p className="body-sm text-gray-500">
Note: only the first 100 properties can be viewed in list.
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidePanelControlBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const SearchBarComponent: FC<SidePanelControlBarProps> = ({
? savedPropertyCount
: featureCount.toLocaleString()}{" "}
</span>
Properties <span className="max-xl:hidden"> in View </span>
<span className="sm:hidden lg:inline"> Total </span> Properties
</h1>
</div>
{/* Right-aligned content: Buttons */}
Expand Down

0 comments on commit 674ec6b

Please sign in to comment.