Skip to content

Add Material 3 chips as content emitters#633

Merged
mrmans0n merged 1 commit into
mrmans0n:mainfrom
Noahs212:add-m3-chips-emitters
May 19, 2026
Merged

Add Material 3 chips as content emitters#633
mrmans0n merged 1 commit into
mrmans0n:mainfrom
Noahs212:add-m3-chips-emitters

Conversation

@Noahs212
Copy link
Copy Markdown

Add the following Material 3 chips to ComposableEmittersList: AssistChip, ElevatedAssistChip, FilterChip, ElevatedFilterChip, InputChip, SuggestionChip, ElevatedSuggestionChip. Mirrors the shape of #613 (Material 3 dividers) and #632 (Material 3 NavigationBar / NavigationBarItem).

Without these entries, MultipleContentEmitters and ModifierNotUsedAtRoot rely on the containsComposablesWithModifiers() fallback in KtCallExpression.emitsContent, which only matches when the call site passes a modifier argument. Calls like AssistChip { ... } (no explicit modifier forwarded) currently slip through. Adding the names to the emitters list closes that gap.

@mrmans0n mrmans0n merged commit 26a3031 into mrmans0n:main May 19, 2026
5 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.

2 participants