feat: modernize Searchbar to Material Design 3
メンテナーはふだん 11 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- react-native, typescript
調査の方向性
まず Searchbar の実装を見つけ、現在のトークン、色、サイズ、モードを、リンク先の Material 3 Search 仕様と比較します。TextInput/TextField、Switch、Checkbox、FAB におけるモダナイズのパターンを確認します。チェックリストに対応し、コンポーネント固有のトークンとディレクトリ構成を更新し、フォーカス動作と用語が選択した仕様に一致すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
- Modernize the Searchbar to the latest specs: https://m3.material.io/components/search/
- Reuse newly introduced tokens (shape, motion, typography, color etc)
- Extract component specific tokens for easier maintenance.
- Get inspired from TextInput/TextField, Switch, Checkbox, FAB components which have gone through modernization.
Current State
Searchbar
MD3 spec: Search
Specs link: https://m3.material.io/components/search/specs
Color tokens
- Container background:
surfaceContainerHigh✅ - Leading icon:
onSurfaceVariant✅ - Clear / trailing icons:
onSurfaceVariant✅ - Cursor:
primary✅ - Input text color:
onSurfaceVariant; should beonSurface - Placeholder text color:
onSurface; should beonSurfaceVariant– these two are swapped ❌
Spacing / sizing
- Bar height:
minHeight: 56✅ - Bar border radius:
7 * roundness= 28dp (corner.extra-large) ✅ for baseline style - View mode border radius: 0 (
corner.none) ✅ for divided style - Input font:
bodyLarge(16sp, overridesfontSize: 18inStyleSheet) ✅
Behavior
- Leading icon, clear icon, trailing icon, custom
rightrender prop ✅ mode="bar"maps to divided/baseline style with elevation ✅mode="view"maps to divided search view with bottomDivider✅- State layers on icons via
IconButton+TouchableRipple✅ - No focus animation: M3 Expressive (Feb 2025) requires the bar container margins to change from 24dp (unfocused) to 12dp (focused), creating a grow-wider effect; not implemented
-
modevalues ("bar"/"view") do not align with M3 spec terminology ("contained"/"divided (baseline)") - M3 Expressive contained style is now the recommended style; the component partially implements the shape but missing the focus margin transition
- No results/suggestions container component: spec anatomy includes a “container for search suggestions or results” as element 6; consumers must build this themselves with no provided primitive
Notes
- Should be moved to its own directory
- The
dividedstyle is deprecated in M3 Expressive in favor ofcontained;mode="view"implements the divided style - Result grouping with gaps (M3 Expressive) is a consumer-level concern and does not need to be part of the component itself
- 主要言語
- TypeScript
- スター
- 14.5k
- フォーク
- 2.3k
- 平均マージ
- 13日 16時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstack/react-native-paper のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
callstack/react-native-paper#5146 · コメント 2 件 ·
メンテナーはふだん 11 日以内に返信
-
Menu ignores the keyboard when it mounts while the keyboard is already open対応中かも @manchoudhary が 48 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
callstack/react-native-paper#5096 ·
メンテナーはふだん 11 日以内に返信
-
Tooltip: onPress event object is not propagated to parent component on native対応中かも @aliyilmaztech が 82 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
callstack/react-native-paper#5003 ·
メンテナーはふだん 11 日以内に返信
-
Snackbar stays mounted after `visible=false` under new architecture (iOS + Android)対応中かも @momomuchu が 123 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
callstack/react-native-paper#4951 ·
メンテナーはふだん 11 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
callstack/react-native-paper#4881 ·
メンテナーはふだん 11 日以内に返信
callstack/react-native-paper の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kunchenguid/gh-axi#247 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
lidge-jun/opencodex#8101 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
effort:S P3 refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nightscout/nocturne#3243 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
JuliusBrussee/caveman#1449 ·
メンテナーはふだん 1 日以内に返信