material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[Theme] List item text appearance doesn't conform to Material 3 guidelines

Open guillaume-tgl opened this issue 1 year ago • 0 comments
trafficstars

Description: Material 3 guidelines specifies that the primary text of list items should have a text appearance of BodyLarge: https://m3.material.io/components/lists/specs#d7d16114-40f7-43a3-bcfa-517b61d21676

Expected behavior: textAppearanceListItem and android:textAppearanceListItem should be set to ?attr/textAppearanceBodyLarge

Source code:

    <!-- Default Framework Text styles. -->
    <item name="android:textAppearanceListItem">?attr/textAppearanceTitleMedium</item>
    <item name="android:textAppearanceListItemSmall">?attr/textAppearanceTitleMedium</item>
    <item name="android:textAppearanceListItemSecondary" tools:targetApi="21">?attr/textAppearanceBodyMedium</item>
    <item name="textAppearanceListItem">?attr/textAppearanceTitleMedium</item>
    <item name="textAppearanceListItemSmall">?attr/textAppearanceTitleMedium</item>
    <item name="textAppearanceListItemSecondary">?attr/textAppearanceBodyMedium</item>

Minimal sample app repro: Please consider attaching a minimal sample app that reproduces the issue. This will help narrow down the conditions required for reproducing the issue, and it will speed up the bug fix process. You may attach a zip file of the sample app or link to a GitHub repo that contains the sample app.

Material Library version: 1.11.0 but bug also present on master

guillaume-tgl avatar Apr 29 '24 12:04 guillaume-tgl