Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Accessibility setting compatible AirshipToast #5803

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

Merged
Jon-edge merged 1 commit into develop from jon/fix/accesibility-toast
Oct 23, 2025

Conversation

@Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Oct 23, 2025
edited by cursor bot
Loading

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Note

Switches AirshipToast to use EdgeText with unlimited lines, removes allowFontScaling prop, and updates the Dev test toast message.

  • UI / Toast:
    • Replace Text with EdgeText in src/components/common/AirshipToast.tsx and set numberOfLines={0} for unlimited wrapping.
    • Remove allowFontScaling support from Props and usage.
  • Dev:
    • Update demo toast copy in src/components/scenes/DevTestScene.tsx to reflect new scaling behavior.

Written by Cursor Bugbot for commit 6cfb984. This will update automatically on new commits. Configure here.


Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

i️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 67 to 73
return (
<Animated.View style={[styles.body, { opacity }]}>
{message != null ? (
<Text style={styles.text} allowFontScaling={allowFontScaling}>
<EdgeText style={styles.text} numberOfLines={0}>
{message}
</Text>
</EdgeText>
) : null}
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot Oct 23, 2025

Choose a reason for hiding this comment

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

P1 Badge Keep AirshipToast honoring accessibility font size

Replacing the Text with EdgeText removes the allowFontScaling prop and switches the underlying element to allowFontScaling={false} (see EdgeText implementation). As a result, toast messages now ignore the user’s Dynamic Type setting and there is no way for callers to re‐enable scaling. Previously the toast respected accessibility font size by default and callers could opt out. This regression will cause unreadably small toasts for users who rely on larger fonts.

Useful? React with 👍 / 👎.

Copy link
Contributor

@swansontec swansontec Oct 23, 2025

Choose a reason for hiding this comment

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

Correct, this is the exact goal. The theme responds to the scaling setting, not individual text elements.

Comment on lines 67 to 73
return (
<Animated.View style={[styles.body, { opacity }]}>
{message != null ? (
<Text style={styles.text} allowFontScaling={allowFontScaling}>
<EdgeText style={styles.text} numberOfLines={0}>
{message}
</Text>
</EdgeText>
) : null}
Copy link
Contributor

@swansontec swansontec Oct 23, 2025

Choose a reason for hiding this comment

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

Correct, this is the exact goal. The theme responds to the scaling setting, not individual text elements.

@Jon-edge Jon-edge force-pushed the jon/fix/accesibility-toast branch from 307f6b8 to 6cfb984 Compare October 23, 2025 23:19
@Jon-edge Jon-edge merged commit c9c477f into develop Oct 23, 2025
2 of 3 checks passed
@Jon-edge Jon-edge deleted the jon/fix/accesibility-toast branch October 23, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

@swansontec swansontec swansontec approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /