Skip to content

fix(drawer): add top border in high contrast - #7811

Merged
mcoker merged 1 commit into
patternfly:mainfrom
mcoker:issue-7805
Sep 15, 2025
Merged

mcoker merged 1 commit into
patternfly:mainfrom
mcoker:issue-7805

Conversation

@mcoker

@mcoker mcoker commented Sep 8, 2025 •

Copy link
Copy Markdown
Contributor

@lboehling this adds a top border to all drawer panels. This would mean there would be a double border with the panel open if there were already a top border added in the UI, but I wonder if that's worth the trade-off of this adding a border to places there is not currently a border between the drawer and whatever is above it (like the notification drawer)

Adds a top border to drawer panels when the HTML structure is attached to the page layout - most common use of this layout is with a notification drawer. This is also the HTML structure generated when using <Page notificationDrawer={...} />

fixes #7805

@mcoker
mcoker requested review from lboehling and srambach September 8, 2025 19:40
@patternfly-build

patternfly-build commented Sep 8, 2025 •

Copy link
Copy Markdown
Collaborator

@lboehling lboehling left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

i think this looks good! benefits of the border in the full height drawer outweigh the slight weirdness with the double border when it's in page. Wondering if there is anyway to just target the notification drawer specifically to add the top border? if not i think this is g2g!

@mcoker
mcoker marked this pull request as ready for review September 9, 2025 21:51
@mcoker

mcoker commented Sep 9, 2025 •

Copy link
Copy Markdown
Contributor Author

@lboehling updated to just style the "notification drawer" drawer. Here are places you can see the "notification drawer" that should get the border

You should not see that border on any other drawer - like any of the drawer examples, the primary-detail drawers, etc

Question - when the drawer width spans the width of the viewport (on mobile), do you still want the border?

Here are some screenshots:

Panel expanded on desktop

Screenshot 2025-09-09 at 4 56 07 PM

Panel expanded on mobile (with border)

Screenshot 2025-09-09 at 4 56 12 PM

Panel expanded on mobile (without border)

Screenshot 2025-09-09 at 4 56 22 PM

Drawer collapsed on mobile

Screenshot 2025-09-09 at 4 56 40 PM

@lboehling

Copy link
Copy Markdown

this all looks awesome thank you @mcoker! Yes, i think we should have the border on mobile too. thanks!

Comment thread src/patternfly/components/Page/page.scss
@mcoker
mcoker requested a review from srambach September 15, 2025 15:44

@srambach srambach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

L🗄️ TM

@mcoker
mcoker merged commit cc84b13 into patternfly:main Sep 15, 2025
4 checks passed
@mcoker
mcoker deleted the issue-7805 branch September 15, 2025 17:49
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.3.0-prerelease.70 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - Drawer - Drawer panel needs top border in some instances

4 participants