[Feature Request]: Show TextFilter count text in inactive/disabled color when loading
Description
Collection filter components has countText and loading props to display the number of matched results:
countTextalways shows & triggers screen readers when there are filtersloadingdelays screen readers to announcecountTextuntil it's false because the currentcountTextmay be out of date. It would make a lot of sense and a great user experience to show thecountTextin inactive/disabled status to indicate that it's out of date. Alternative solution is to have more specific loading/stale indicator forcountText, but I think simply showing it in inactive/disabled color is already a great solution.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I checked the current issues for duplicate requests
Hi, thanks for reaching out. Adding a visual indicator of loading to the count text does seem like a sensible addition to the text filter component, however we don’t have any plans for making this change at the moment.
Hi, thanks for reaching out. Adding a visual indicator of loading to the count text does seem like a sensible addition to the text filter component, however we don’t have any plans for making this change at the moment.
Would you guys accept a PR for this though? It seems to be a very simple PR and I'm willing to submit it.
Hi @phuctm97,
Thanks for your feedback on the collection filter. To help us better understand the issue and find the best solution, could you please provide a bit more context on the following:
- Use case: Can you describe typical use cases where users would rely on the
countTextwhile filtering? How important is it that the count is always up-to-date, given it's pretty smooth and quick to be updated? - Impact of outdated count: What problems have you noticed when the
countTextis out of date during the loading phase? - Screen reader behavior: Sounds like your primary concerns may relate to screen reader experiences. If so, did you notice any issues with how the
countTextis announced while loading?
Best regards, Atsushi