Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat: modernize Badge according to MD3

オープン
#4,974 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 7 日以内に返信

まだ誰も着手していません。

評価

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

調査の方向性

既存の Badge コンポーネントから始め、現在のサイズ、padding、タイポグラフィ、overflow の動作を、リンク先の Material Design 3 の badge 仕様と比較します。子要素のない badge が 6dp のドットとして、ラベル付きの badge が 16dp のピルとしてレンダリングされ、間隔とテキストサイズに指定された値が使用され、長いラベルが 16x34dp の制限に従えば完了です。

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

説明

v6

The goal is to modernize the Badge component to the latest Material Design specs by reusing theme tokens (shape, typography, colors etc).

Current state

Badge

MD3 spec: Badges
Specs link: https://m3.material.io/components/badges/specs

Color tokens
  • Background error ✅
  • Label text onError ✅
Spacing / sizing
  • Default size is 20dp. MD3 defines small badge at 6dp (no label) and large badge at 16dp (with label)
  • No small/large distinction. Size should be determined automatically: 6dp when no children, 16dp when children are present
  • paddingHorizontal: 3. Spec requires 4dp between badge edge and text
  • fontSize = size * 0.5 yields 8sp at 16dp. Spec requires 11sp for large badge label text
  • Large badge max character count size (16x34dp) not handled; text currently overflows unconstrained
Behavior
  • No automatic small vs large variant. Component should render as a 6dp dot when childless and as a 16dp pill when a label is provided
主要言語
TypeScript
スター
14.5k
フォーク
2.2k
平均マージ
6日 12時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstack/react-native-paper のほかの issue

callstack/react-native-paper の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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