Skip to content

docs(migration): fix the Switch, IconButton, TextInput and Dialog notes - #5306

Merged
Doberjohn merged 2 commits into
mainfrom
@Doberjohn/alpha4-guide-fixes
Nov 24, 2026
Merged

Doberjohn merged 2 commits into
mainfrom
@Doberjohn/alpha4-guide-fixes

Conversation

@Doberjohn

Copy link
Copy Markdown
Collaborator

Motivation

Four places in the 6.x migration guide were wrong or silent:

  • Focus indicator said a Switch without a handler is a keyboard stop. Since fix(switch)!: residual MD3 deviations in switch #5222 it is read-only, so the line now links to that section.
  • The IconButton section didn't say that filled and tonal draw at rest the colors 5.x used only when selected, that a selected tonal button draws secondary, or that outlined uses outlineVariant.
  • The TextInput.Icon iconSize sample didn't type check (TS2739).
  • A dialog with a title and actions but no content has 40dp between them (16dp in 5.x). The guide now gives a contentProps workaround.

Related issue

Part of #4991

Screenshots / Videos

None: docs only.

Test plan

Run yarn docs dev, open the 6.x migration guide and read Focus indicator (its link goes to Switches without onValueChange), IconButton (Mode names, selected={false}), TextInput (Icon size) and Dialog (Prop-based API).

Corrects four places in the 6.x migration guide:

- Focus indicator: a Switch without onValueChange is read-only and isn't a
  keyboard stop. A Drawer.CollapsedItem without onPress still is.
- IconButton: filled and tonal draw primary and secondaryContainer at rest,
  where 5.x drew surfaceVariant until selected. The guide shows how to keep
  the 5.x look with containerColor and iconColor.
- TextInput: the iconSize sample passes the accessory props, so it type
  checks.
- Dialog: a dialog without content keeps the content area's 24dp bottom
  padding. The guide gives the contentProps workaround.

Part of #4991
A selected tonal button draws secondary instead of secondaryContainer,
so a 5.x tonal toggle that is off now looks like one that was on. The
outlined outline uses outlineVariant instead of outline, also when
disabled.

Part of #4991
@Doberjohn Doberjohn added this to the 6.0.0 milestone Nov 24, 2026
@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 90e10d7

No open findings.

Not in the reviewers' prompt (1 file)
  • docs/6.x/docs/guides/migration.md: no reviewer was selected for this change

Reviewed with this repository's own Sentinel configuration (8cf0688deadc).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@Doberjohn
Doberjohn merged commit e4256fd into main Nov 24, 2026
14 checks passed
@Doberjohn
Doberjohn deleted the @Doberjohn/alpha4-guide-fixes branch November 24, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant