Skip to content

Commit c87c351

Browse files
authored
docs(migration): note the Button outline color and wider Banner actions (#5196)
Add two lines to the Button appearance changes in the 6.x migration guide: the outlined outline is drawn in outlineVariant instead of outline, also when disabled (5.x used surfaceDisabled), and Banner actions are text buttons instead of compact ones, with 16dp of horizontal padding insteadof 8dp and a 64dp minimum width. Follow-up to #5097.
1 parent d1fa26b commit c87c351

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎docs/6.x/docs/guides/migration.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,13 @@ These need no code change, but the rendering differs:
744744

745745
- The `outlined` label and icon use **`onSurfaceVariant`** instead of
746746
`primary`.
747+
- The `outlined` outline uses **`outlineVariant`** instead of `outline`, and
748+
keeps it when disabled instead of switching to `surfaceDisabled`. A theme
749+
that set `colors.outline` to restyle outlined buttons sets `outlineVariant`
750+
now.
751+
- `Banner` actions are `text` buttons instead of `compact` ones, so they are
752+
wider: **16dp** of horizontal padding at the default `small` size instead of
753+
**8dp**, and a **64dp** minimum width.
747754
- The default icon size is **20dp**, up from **18dp**.
748755
- `labelStyle={{ fontSize }}` no longer changes the icon size. The icon follows
749756
`size`; set both if you need them to match.

0 commit comments

Comments
 (0)