callstack / callstack/react-native-paper

Subtitle: Why was the subtitle prop deprecated in Appbar.Content when MD3 explicitly supports subtitles in app bars?

Aperta
#4,875 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
TypeScript
Stelle
14.5k
Fork
2.2k
Merge medio
5g 23h
PR unite (30g)
12

Descrizione

Image

The subtitle and subtitleStyle props on Appbar.Content are marked as deprecated in v5.x, yet the [[Material Design 3 specification for app bars]](https://m3.material.io/components/app-bars/specs) clearly shows subtitles as a supported and documented part of the component across all app bar sizes (small, medium, and large).
As seen in the MD3 spec, all center-aligned and expanding app bar variants include a Headline + Subtitle layout.

**A few questions:**
- What was the reasoning behind deprecating the subtitle prop in the v5 / MD3 theme update?
- Is there an officially recommended alternative for rendering a subtitle under the title in Appbar.Header?
- Are there any plans to reintroduce subtitle support, perhaps tied to the mode prop (e.g., only for medium or large modes where the spec shows it)?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.