-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
refactor: align List tokens, spacing and typography with MD3 #5041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3b3ee21
00e01cb
d0a3478
d92fdfa
3279979
edc43b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import type { ColorRole } from '../../theme/types'; | ||
|
|
||
| const sizes = { | ||
| verticalPadding: 12, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could we avoid applying 12dp root padding to every row? with the PR’s own 40dp avatar example, one-line item becomes 64dp (40 + 12 + 12) instead of 56dp, maybe we can preserve measurement-free 56/72/88dp text rows by using 8dp container padding plus 4dp content padding with the same 4dp offset for top-aligned accessories? and could we also cover a 40dp avatar or |
||
| oneLineContainerHeight: 56, | ||
| twoLineContainerHeight: 72, | ||
| leadingSpace: 16, | ||
| trailingSpace: 16, | ||
| } as const; | ||
|
|
||
| const colors = { | ||
| containerColor: 'surface', | ||
| headlineColor: 'onSurface', | ||
| supportingTextColor: 'onSurfaceVariant', | ||
| leadingIconColor: 'onSurfaceVariant', | ||
| trailingIconColor: 'onSurfaceVariant', | ||
| expandTrailingIconColor: 'onSurface', | ||
| } as const satisfies Record<string, ColorRole>; | ||
|
|
||
| export const ListTokens = { ...sizes, ...colors }; | ||
Uh oh!
There was an error while loading. Please reload this page.