Skip to content

Conversation

@mcoker
Copy link
Contributor

@mcoker mcoker commented Nov 6, 2025

fixes #12121

when glass theme is enabled (<html class="pf-v6-theme-glass">), a pill drawer will have glass styles by default. hasNoGlass will remove those glass styles via .pf-m-no-glass. I'm applying the glass any time hasNoGlass is applied, not just if isPill is true. Let me know if you'd like me to only apply .pf-m-no-glass if isPill is true.

@patternfly-build
Copy link
Contributor

patternfly-build commented Nov 6, 2025

hasNoBorder?: boolean;
/** Flag indicating that the drawer panel should be resizable. */
isResizable?: boolean;
/** Flag indicating that the drawer panel should disable glass styles. **Note:** only applies to drawers with `isPill`. */
Copy link
Member

Choose a reason for hiding this comment

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

I know I just approved this, but do we want beta on here? Also want to note that prop descriptions do not render as markdown.

Screenshot 2025-11-06 at 12 00 25 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I was on autopilot, this is how we write them in core. Updated!

@rebeccaalpert
Copy link
Member

Test is failing because this modifiers object in this file doesn't have the no-glass attribute yet:

import styles from '@patternfly/react-styles/css/components/Drawer/drawer';

I hit this when I didn't have the right version of Core before.

Copy link
Member

@rebeccaalpert rebeccaalpert left a comment

Choose a reason for hiding this comment

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

Thanks!

@mcoker mcoker requested a review from kmcfaul November 6, 2025 19:12
@mcoker
Copy link
Contributor Author

mcoker commented Nov 6, 2025

@rebeccaalpert

Test is failing because this modifiers object in this file doesn't have the no-glass attribute yet:

Doh! I forgot to add the hasNoGlass prop 🤦 Should be good now.

@rebeccaalpert
Copy link
Member

I didn't notice, so XD

@kmcfaul kmcfaul merged commit a10ca34 into patternfly:main Nov 6, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drawer - add no-glass panel variant

4 participants