Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Always provide firstIndex and totalItemsCount in collection result #72

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

pan-kot
Copy link
Member

@pan-kot pan-kot commented Apr 17, 2024

The firstIndex and totalItemsCount properties are used in the Table and Cards components. The properties are needed for renderAriaLive announcements and to assign aria-rowcount and aria-rowindex. While the latter can be omitted when there is no pagination, the live announcements are important regardless because those include the change of the total items count when filtering.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a13450a) to head (7360db8).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #72   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           14        14           
  Lines          443       443           
  Branches       156       156           
=========================================
  Hits           443       443           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pan-kot pan-kot marked this pull request as ready for review April 17, 2024 10:47
@pan-kot pan-kot requested a review from a team as a code owner April 17, 2024 10:47
@pan-kot pan-kot requested review from cansuaa and gethinwebster and removed request for a team April 17, 2024 10:47
Copy link
Member

@gethinwebster gethinwebster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, pending comment offline about checking impact of interface changes

@pan-kot
Copy link
Member Author

pan-kot commented Apr 18, 2024

lgtm, pending comment offline about checking impact of interface changes

Checked for the possible impact - no failed packages.

@pan-kot pan-kot merged commit 57b9bf6 into main Apr 18, 2024
31 checks passed
@pan-kot pan-kot deleted the fix-collection-result-first-index-and-total branch April 18, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants