-
Notifications
You must be signed in to change notification settings - Fork 160
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
[Compound] Implement DropdownMenu customisations. #1050
[Compound] Implement DropdownMenu customisations. #1050
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #1050 +/- ##
===========================================
+ Coverage 56.88% 56.90% +0.02%
===========================================
Files 997 997
Lines 25392 25402 +10
Branches 5117 5112 -5
===========================================
+ Hits 14444 14456 +12
- Misses 8703 8705 +2
+ Partials 2245 2241 -4
☔ View full report in Codecov by Sentry. |
@@ -39,12 +46,23 @@ fun DropdownMenuItem( | |||
leadingIcon: @Composable (() -> Unit)? = null, | |||
trailingIcon: @Composable (() -> Unit)? = null, | |||
enabled: Boolean = true, | |||
colors: MenuItemColors = MenuDefaults.itemColors(), | |||
contentPadding: PaddingValues = MenuDefaults.DropdownMenuItemContentPadding, | |||
colors: MenuItemColors = MenuDefaults.itemColors( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this param from the public API?
In #1043 it looks like you created an internal "defaults" object and removed the now unneeded params from the public API of the composable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proactive LGTM with a comment!
Kudos, SonarCloud Quality Gate passed! |
Changes
DropdownMenuItemText
since we can get the same results by just providing the text style.Closes element-hq/compound#204