Skip to content

Add minimumInteractiveComponentSize snippet for the accessibility API defaults page - #1198

Merged
srikrishnasakunia merged 2 commits into
android:mainfrom
hamen:accessibility-minimum-interactive-size
Oct 27, 2026
Merged

srikrishnasakunia merged 2 commits into
android:mainfrom
hamen:accessibility-minimum-interactive-size

Conversation

@hamen

@hamen hamen commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Code snippet for:

New content, not a copy of a block on the guide page. The "Minimum touch target sizes" section gives the 48 dp rule and shows sizeIn, but never names Modifier.minimumInteractiveComponentSize(). The new sample is a 24 dp clickable Box next to a Text in a Row. It uses the modifier order of the reference sample (clickable, minimumInteractiveComponentSize(), size, background), so the box keeps its drawn size and the Text moves to make room for the 48 dp layout slot.

Region Page section Change Formatter changes
android_compose_accessibility_box_minimum_interactive_size Minimum touch target sizes New content, no block on the page None

The other five regions in AccessibilitySnippets.kt that the section uses are unchanged.

@hamen
hamen marked this pull request as ready for review October 20, 2026 10:50
@hamen
hamen requested a review from a team as a code owner October 20, 2026 10:50
@hamen
hamen requested a review from AliceYuan October 20, 2026 10:50
@snippet-bot

snippet-bot Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@hamen

hamen commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

cc @riggaroo

@srikrishnasakunia
srikrishnasakunia merged commit 7549ae0 into android:main Oct 27, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants