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

Expect androidx.compose.material.DropdownMenu in common #738

Merged
merged 8 commits into from Aug 10, 2023

Conversation

MatkovIvan
Copy link
Member

Proposed Changes

  • Expect DropdownMenu and DropdownMenuItem in common
  • Deprecate old overload on desktop
  • Add temporary overload without focusable and properties to avoid "Overload resolution ambiguity" error
  • Move fixes from DesktopDropdownMenuPositionProvider to common (requires upstreaming)

Testing

Test: try to use DropdownMenu and DropdownMenuItem

TODO: add to mpp demo

@MatkovIvan MatkovIvan force-pushed the ivan.matkov/common-alertdialog branch from 3b1e95e to 87da601 Compare August 8, 2023 09:54
@MatkovIvan MatkovIvan force-pushed the ivan.matkov/common-dropdownmenu branch from 787a813 to 4164545 Compare August 8, 2023 09:55
@@ -160,31 +164,22 @@ class DesktopMenuTest {
// (RTL) Anchor right is beyond the right of the window, so align popup to the window right
@Test
fun menu_positioning_rtl_windowRight_belowAnchor() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires #740 to pass

Base automatically changed from ivan.matkov/common-alertdialog to jb-main August 10, 2023 11:51
@MatkovIvan MatkovIvan force-pushed the ivan.matkov/common-dropdownmenu branch from 3b2b4fb to 3d54d92 Compare August 10, 2023 12:35
@MatkovIvan MatkovIvan marked this pull request as ready for review August 10, 2023 12:36
@MatkovIvan MatkovIvan merged commit 8f1df5e into jb-main Aug 10, 2023
3 checks passed
@MatkovIvan MatkovIvan deleted the ivan.matkov/common-dropdownmenu branch August 10, 2023 15:18
igordmn pushed a commit that referenced this pull request Nov 15, 2023
…Menu` in common (#738)

* Expect DropdownMenu in common

* Deprecate old DropdownMenu overloads

* Fix class name in tests

* Fix binary compatibility for DropdownMenuItem

* Move missing Rtl fix to common

* Revert DropdownMenuPositionProvider fixes

* Update Rtl test

* Fix DesktopMenuTest tests
igordmn pushed a commit that referenced this pull request Nov 16, 2023
…DropdownMenu` in common (#738)

* Expect DropdownMenu in common

* Deprecate old DropdownMenu overloads

* Fix class name in tests

* Fix binary compatibility for DropdownMenuItem

* Move missing Rtl fix to common

* Revert DropdownMenuPositionProvider fixes

* Update Rtl test

* Fix DesktopMenuTest tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants