callstack / callstack/react-native-paper

Handling accessibility feature boldTextEnabled

オープン
#4,732 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature request
主要言語
TypeScript
スター
14.5k
フォーク
2.2k
平均マージ
5日 23時間
マージ済み PR(30日)
12

説明

**Is your feature request related to a problem? Please describe.**
Problem is there is no general way to set text bold from one place. I would have to check `AccessibilityInfo.isBoldTextEnabled()` in a hook. And then call that hook everywhere I use `` -component.

**Describe the solution you'd like**
A simple way to provide this info directly or automatically in `` and it would handle the rest. Make the text bold if it needs to based on the accessibility-feature's state.

**Describe alternatives you've considered**
Making a hook and custom text-component that I wrap Paper Text-component inside. But that is not gonna scale very well.

**Additional context**
-

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、PaperProvider がコンテキストをどのように提供しているか、また Paper の Text コンポーネントがテキストスタイルをどのように処理しているかを追跡し、次に React Native の AccessibilityInfo.isBoldTextEnabled() の動作を確認してください。求められている結果は、アクセシビリティ設定が有効な場合に、すべての Text コンポーネントをカスタムフックでラップすることなく、provider レベルで太字テキストを自動的に適用する方法です。特定のファイルやテストは指定されていないため、まず関連する provider、Text のエントリポイント、既存のアクセシビリティテストを特定してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native, typescript
領域
accessibility, frontend, mobile
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。