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

fix(Drawer): ensure ScrollView is used for scrollable content #1632

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

tujoworker
Copy link
Member

No description provided.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 13, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 01a6744:

Sandbox Source
eufemia-starter Configuration

tujoworker added a commit that referenced this pull request Oct 13, 2022
Depends (more or less) on PRs: #1632 #1633 #1631

Reproduction [CSB](https://codesandbox.io/s/eufemia-drawer-list-in-drawer-x74m4l?file=/src/App.tsx) for reported issue. To do so:

- Visit https://x74m4l.csb.app/
- Zoom browser to 150%

The `Drawerlist` is then very narrow in height or off screen positioned.
@tujoworker tujoworker force-pushed the fix/drawer-overflow-scroll branch from 34f14fd to 3541e2c Compare October 13, 2022 10:09
@tujoworker tujoworker requested a review from dinarosv October 13, 2022 10:09
@gatsby-cloud
Copy link

gatsby-cloud bot commented Oct 13, 2022

✅ DNB Eufemia Portal deploy preview ready

@tujoworker tujoworker requested a review from langz October 13, 2022 11:28
@tujoworker tujoworker force-pushed the fix/drawer-overflow-scroll branch from 3541e2c to 907d489 Compare October 14, 2022 10:36
@tujoworker tujoworker removed the request for review from dinarosv October 14, 2022 10:39
@tujoworker
Copy link
Member Author

Found a way of verifying the removal of overflow-x: hidden; so added a test for that.

@tujoworker tujoworker force-pushed the fix/drawer-overflow-scroll branch 5 times, most recently from 8887c09 to ff62ebe Compare October 14, 2022 14:21
@tujoworker tujoworker force-pushed the fix/drawer-overflow-scroll branch from ff62ebe to 01a6744 Compare October 14, 2022 14:24
@tujoworker tujoworker merged commit fea2358 into main Oct 14, 2022
@tujoworker tujoworker deleted the fix/drawer-overflow-scroll branch October 14, 2022 15:39
tujoworker added a commit that referenced this pull request Oct 17, 2022
Depends (more or less) on PRs: #1632 #1633 #1631

Reproduction [CSB](https://codesandbox.io/s/eufemia-drawer-list-in-drawer-x74m4l?file=/src/App.tsx) for reported issue. To do so:

- Visit https://x74m4l.csb.app/
- Zoom browser to 150%

The `Drawerlist` is then very narrow in height or off screen positioned.
tujoworker added a commit that referenced this pull request Oct 17, 2022
* Rename isInsideScrollView to getClosestScrollViewElement and redefine how whats returned

* fix(DrawerList): fix auto sizing when used in Drawer component

Depends (more or less) on PRs: #1632 #1633 #1631

Reproduction [CSB](https://codesandbox.io/s/eufemia-drawer-list-in-drawer-x74m4l?file=/src/App.tsx) for reported issue. To do so:

- Visit https://x74m4l.csb.app/
- Zoom browser to 150%

The `Drawerlist` is then very narrow in height or off screen positioned.
tujoworker pushed a commit that referenced this pull request Oct 23, 2022
# [9.33.0](v9.32.1...v9.33.0) (2022-10-23)

### Bug Fixes

* **Accordion:** replace internal animation with HeightAnimation component ([#1619](#1619)) ([2cb2d48](2cb2d48))
* **Dl:** ensure correct spacing ([#1626](#1626)) ([5330e6d](5330e6d))
* **Dl:** remove span as direct sibling for horizontal direction ([#1625](#1625)) ([6845219](6845219))
* **Drawer:** ensure ScrollView is used for scrollable content ([#1632](#1632)) ([fea2358](fea2358))
* **DrawerList:** fix auto sizing when used in Drawer component ([#1634](#1634)) ([f19d58b](f19d58b)), closes [#1632](#1632) [#1633](#1633) [#1631](#1631)
* **DrawerList:** reset "enable_body_lock" handlers after closing ([#1629](#1629)) ([1a90c72](1a90c72))
* **Drawer:** make spacing of header and nav robust ([#1641](#1641)) ([5454ded](5454ded))
* **FormStatus:** fix stretch when used in Dropdown and Autocomplete ([#1618](#1618)) ([a961feb](a961feb))
* **gatsby-plugin-eufemia-theme-handler:** support Gatsby > v4.24 ([#1623](#1623)) ([34d0f6c](34d0f6c))
* **Icon:** fix override of data-testid property when provided ([#1637](#1637)) ([d335a14](d335a14))
* **Pagination:** fix locale support ([#1651](#1651)) ([01b93ce](01b93ce))
* **Section:** make style_type property accept any string ([#1636](#1636)) ([9e51565](9e51565))
* **Section:** rename AllSectionProps to SectionAllProps ([#1640](#1640)) ([23de874](23de874))
* **Space:** rewrite Space component to TypeScript ([#1644](#1644)) ([c59f732](c59f732))
* **Tooltip:** ensure timers cleanup on unmount ([#1642](#1642)) ([6dd4b7b](6dd4b7b))

### Features

* **DrawerList:** animate max-height when changed during scrolling ([#1631](#1631)) ([cf302f7](cf302f7))
* **DrawerList:** animate position when used inside dnb-scroll-view ([#1633](#1633)) ([7ed9550](7ed9550))
* **HeightAnimation:** add showOverflow property ([#1627](#1627)) ([a9bbce4](a9bbce4))
* **HeightAnimation:** make the view open by default ([#1646](#1646)) ([32aa0eb](32aa0eb))
* **icons:** hierarchy, layout_card and unlock ([#1654](#1654)) ([d8d37ba](d8d37ba))
* **Upload:** add new Upload component ([#1581](#1581)) ([3304347](3304347)), closes [#1626](#1626)
@tujoworker
Copy link
Member Author

🎉 This PR is included in version 9.33.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants