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

iOS: Carry contextual information for dates, times, and numbers #30890

Closed
amarlette opened this issue Feb 4, 2021 · 2 comments
Closed

iOS: Carry contextual information for dates, times, and numbers #30890

amarlette opened this issue Feb 4, 2021 · 2 comments
Labels
Accessibility Team - Evaluated Accessibility Needs: Docs Website PR To encourage the authors to create a website PR for documentation. Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@amarlette
Copy link

amarlette commented Feb 4, 2021

Requires API Proposal

This issue may require a new API, or a change to an existing API. An API proposal should be added and discussed before proceeding with implementation. The API proposal can be added in the comments of this issue or linked as a separate issue.

Description

Dates and Numbers can be very difficult to correctly contextualize when screen readers try to vocalize the text. It would be preferable if logic for dates and times were encapsulated so that custom logic for accessibility labels would not have to be created every time.

React Native version:

v0.63

Expected Behavior

One idea would be pseudo code like this:

<Text type="date" style={...}>
 01/12/1990
</Text>

VoiceOver would read (for a US locale): "January twelfth, nineteen ninety."

iOS Details

There are particular classes on native iOS that support this kind of encapsulation and context automatically like NSDateFormatter, NSDateComponents, and NSNumberFormatter.

@gioneill gioneill changed the title iOS: NSDateFormatter, NSDateComponent, and NSNumberFormatter iOS: Carry contextual information for dates, times, and numbers Feb 25, 2021
@amarlette amarlette added the Needs: Docs Website PR To encourage the authors to create a website PR for documentation. label Apr 29, 2021
Copy link

github-actions bot commented Nov 8, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Nov 8, 2023
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility Team - Evaluated Accessibility Needs: Docs Website PR To encourage the authors to create a website PR for documentation. Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Development

No branches or pull requests

3 participants