Skip to content
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

Merged
merged 4 commits into from
Aug 11, 2023

Conversation

jmartinesp
Copy link
Member

@jmartinesp jmartinesp commented Aug 10, 2023

Changes

  • Remove DropdownMenuItemText since we can get the same results by just providing the text style.
  • Apply Figma designs.
  • Make sure multi-line menu items look good.

Closes element-hq/compound#204

@jmartinesp jmartinesp requested a review from a team as a code owner August 10, 2023 11:48
@jmartinesp jmartinesp requested review from julioromano and removed request for a team August 10, 2023 11:48
@github-actions
Copy link
Contributor

github-actions bot commented Aug 10, 2023

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/QXPbSC

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Patch coverage: 70.96% and project coverage change: +0.02% 🎉

Comparison is base (e600b05) 56.88% compared to head (35a774a) 56.90%.
Report is 3 commits behind head on develop.

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     
Files Changed Coverage Δ
...droid/features/roomdetails/impl/RoomDetailsView.kt 56.36% <ø> (ø)
...eatures/roomlist/impl/components/RoomListTopBar.kt 47.88% <ø> (ø)
.../designsystem/theme/components/DropdownMenuItem.kt 66.66% <68.96%> (+21.50%) ⬆️
...ries/designsystem/theme/components/DropdownMenu.kt 60.00% <100.00%> (-8.43%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -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(

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.

Copy link

@julioromano julioromano left a 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!

@sonarcloud
Copy link

sonarcloud bot commented Aug 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@jmartinesp jmartinesp added this pull request to the merge queue Aug 11, 2023
Merged via the queue into develop with commit f35272c Aug 11, 2023
@jmartinesp jmartinesp deleted the chore/jme/compound-platform-components-menu branch August 11, 2023 13:10
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.

Implement Menus in Android
2 participants