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

feat(action-bar, action-pad, block, flow-item, panel): add overlayPositioning prop for built-in menus #8633

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Jan 23, 2024

Related Issue: #8620

Summary

This allows users to specify overlayPositioning to help escape scrolling containers for underlying menus.

Note: this adds a new helper (delegatesToFloatingUiOwningComponent) to shallowly test if a component has a floating-ui-owning component wired up.

@github-actions github-actions bot added the enhancement Issues tied to a new feature or request. label Jan 23, 2024
@jcfranco jcfranco added the low risk Issues with low risk for consideration in low risk milestones label Jan 23, 2024
@jcfranco
Copy link
Member Author

jcfranco commented Jan 23, 2024

Questions

  1. We follow <subcomponent><Prop> in a few components to indicate if props affect certain parts (e.g., menuOpen). Would menuOverlayPositioning be more fitting as a name? Counterpoint: I can't think of a scenario where a component would have its floating-ui subcomponents use a different value, so maybe we can keep it consistent w/ overlayPositioning.
  2. Any other suggestions for the test helper name?

@jcfranco jcfranco marked this pull request as ready for review January 24, 2024 01:36
@jcfranco jcfranco requested a review from a team as a code owner January 24, 2024 01:36
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Jan 24, 2024
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

👏

@jcfranco jcfranco merged commit 714b889 into main Jan 24, 2024
15 checks passed
@jcfranco jcfranco deleted the jcfranco/8620-add-overlay-positioning-to-components-with-floating-ui-owning-components branch January 24, 2024 05:46
geospatialem pushed a commit that referenced this pull request Jan 24, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>@esri/calcite-components: 2.3.0</summary>

##
[2.3.0](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components@2.2.0...@esri/calcite-components@2.3.0)
(2024-01-24)


### Features

* **action-bar, action-pad, block, flow-item, panel:** Add
`overlayPositioning` prop for built-in menus
([#8633](#8633))
([714b889](714b889))
* **tab:** Add `--calcite-tab-content-block-padding` to override
built-in block-padding
([#8629](#8629))
([7dae525](7dae525))


### Bug Fixes

* **action-menu:** Clicking an action menu item should call click event.
([#8627](#8627))
([b12ef6b](b12ef6b))
* **list-item:** Always show hover and pointer styling
([#8622](#8622))
([4a8a91a](4a8a91a))
</details>

<details><summary>@esri/calcite-components-angular: 2.3.0</summary>

##
[2.3.0](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-angular@2.2.0...@esri/calcite-components-angular@2.3.0)
(2024-01-24)


### Miscellaneous Chores

* **@esri/calcite-components-angular:** Synchronize undefined versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from ^2.3.0-next.1 to ^2.3.0
</details>

<details><summary>@esri/calcite-components-react: 2.3.0</summary>

##
[2.3.0](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@2.2.0...@esri/calcite-components-react@2.3.0)
(2024-01-24)


### Miscellaneous Chores

* **@esri/calcite-components-react:** Synchronize undefined versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from ^2.3.0-next.1 to ^2.3.0
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues tied to a new feature or request. low risk Issues with low risk for consideration in low risk milestones pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants