Title: Bug - DrawerPanelContent - `hidden` takes up space and breaks cypress · Issue #11938 · patternfly/patternfly-react · GitHub
Open Graph Title: Bug - DrawerPanelContent - `hidden` takes up space and breaks cypress · Issue #11938 · patternfly/patternfly-react
X Title: Bug - DrawerPanelContent - `hidden` takes up space and breaks cypress · Issue #11938 · patternfly/patternfly-react
Description: Describe the problem A clear and concise description of the problem. Which components are affected? I encountered an issue with my PR openshift/console#15077 where despite the hidden attributeof DrawerPanelContent` hiding the content, it...
Open Graph Description: Describe the problem A clear and concise description of the problem. Which components are affected? I encountered an issue with my PR openshift/console#15077 where despite the hidden attributeof Dr...
X Description: Describe the problem A clear and concise description of the problem. Which components are affected? I encountered an issue with my PR openshift/console#15077 where despite the hidden attributeof Dr...
Opengraph URL: https://github.com/patternfly/patternfly-react/issues/11938
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug - DrawerPanelContent - `hidden` takes up space and breaks cypress","articleBody":"**Describe the problem**\nA clear and concise description of the problem. Which components are affected?\n\nI encountered an issue with my PR https://github.com/openshift/console/pull/15077 where despite the `hidden` attribute`of `DrawerPanelContent` hiding the content, it still takes up space in the drawer main wrapper. \n\nThis causes cypress to try and scroll the `drawer__main` element, breaking e2e testing:\n\n\u003cimg width=\"1280\" height=\"720\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/3ec90e53-aa8d-448c-8999-3935199ca47e\" />\n\n**How do you reproduce the problem?**\nProvide steps to reproduce. A [codesandbox](https://codesandbox.io/s/serverless-cherry-q9t3f ) demonstrating the problem is appreciated.\n\nhttps://www.patternfly.org/components/drawer/#resizable-on-inline\n\n**Expected behavior**\nA clear and concise description of the expected behavior.\n\n`DrawerPanelContent` takes up no height so that cypress can't scroll on it\n\n**Is this issue blocking you?**\nList the workaround if there is one.\n\nIn OCP we added `display: none` when the drawer content is hidden, but that breaks the animation\n\n**Screenshots**\nIf applicable, add screenshots to help explain the issue.\n\n\u003cimg width=\"1280\" height=\"720\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7ee15b10-af63-4764-a0ca-5a5d67a19f89\" />\n\n**What is your environment?**\n - OS: [e.g. iOS]\n - Browser [e.g. chrome, safari]\n - Version [e.g. 22]\n\n**What is your product and what release date are you targeting?**\n\n**Any other information?**\n","author":{"url":"https://github.com/logonoff","@type":"Person","name":"logonoff"},"datePublished":"2025-07-25T15:00:30Z","url":"https://github.com/patternfly/patternfly-react/issues/11938"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1ba6c0a7-1d4b-fa0d-b075-8cf5e0f859fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F4C:399E4B:2276E70:2DAF319:6B018401 |
| html-safe-nonce | c4c1ea5c9885a6d3bb597034bfde6e11f0daa791ba7d5a70295e8f63aec0471c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjRDOjM5OUU0QjoyMjc2RTcwOjJEQUYzMTk6NkIwMTg0MDEiLCJ2aXNpdG9yX2lkIjoiODM5MjgwNDI3NTAzNzc2NjY1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 36ef62c6c259cdaea3e09e1e3cf1e48f359d5cef58091065fcf14c8ca00b5f1f |
| hovercard-subject-tag | issue:3263524939 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/patternfly/patternfly-react/11938/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a38bcc13212704292aa8e7d3f307d4a6a3202748f5394a7e50805834e4b4fe15/patternfly/patternfly-react/issues/11938 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a38bcc13212704292aa8e7d3f307d4a6a3202748f5394a7e50805834e4b4fe15/patternfly/patternfly-react/issues/11938 |
| og:image:alt | Describe the problem A clear and concise description of the problem. Which components are affected? I encountered an issue with my PR openshift/console#15077 where despite the hidden attributeof Dr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | logonoff |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/patternfly/patternfly-react git https://github.com/patternfly/patternfly-react.git |
| octolytics-dimension-user_id | 6391110 |
| octolytics-dimension-user_login | patternfly |
| octolytics-dimension-repository_id | 84372347 |
| octolytics-dimension-repository_nwo | patternfly/patternfly-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84372347 |
| octolytics-dimension-repository_network_root_nwo | patternfly/patternfly-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width