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

chore(DescriptionList): added in drawer demo #11404

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

thatblindgeye
Copy link
Contributor

What: Closes #10227

Additional issues:
Based off latest updates to #10229, and also updating/removing things based on v6 changes (updating or removing props, replacing Text and TextContent with Content).

@thatblindgeye thatblindgeye requested review from mcoker, a team, mfrances17, tlabaj, lboehling and bekah-stephens and removed request for a team January 9, 2025 19:50
@patternfly-build
Copy link
Contributor

patternfly-build commented Jan 9, 2025

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

Something weird is happening with the RTL switcher in this new demo. If the drawer is already open and I switch to rtl, then it disappears. If it's already closed and I open it in RTL mode, it pushes the content out in a way that it doesn't when not using RTL 🤔

Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

LGTM, just one little nit on the page section variant

@mcoker
Copy link
Contributor

mcoker commented Jan 10, 2025

@nicolethoen nice catch! Looks like that's probably just a bug in core not calculating the translate direction properly in RTL. Filed an issue for that here - patternfly/patternfly#7292

Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

😺👍

Copy link
Contributor

@mfrances17 mfrances17 left a comment

Choose a reason for hiding this comment

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

Looks good. There are a couple of exceptions thrown but they only appear to be happening when running in surge, not in the demo docs (occurs for the Basic desc list demo as well).

Also it threw me a bit to see the Open in drawer link with the drawer defaulted to open. Be nice if text would change based on status of drawer open/closed (Close drawer/Open drawer).

@bekah-stephens
Copy link

Small thing related to @mfrances17 point. I think it's okay that the "Open drawer" text doesn't change to "Close drawer" when the drawer is open, but only if you aren't able to click that text again to close it (it looks like you can only click the close X in the drawer itself right now)

The only thing that's a little weird is that when you hover over the "Open drawer" text when the drawer is open, it does change to the hover state even though you can't actually click the text (which makes me feel like I should be able to click it)

@thatblindgeye
Copy link
Contributor Author

@mfrances17 @bekah-stephens updated the demo to make that button dynamic. The text will change based on the drawer state, and clicking it will toggle the drawer rather than only always opening it.

@mfrances17
Copy link
Contributor

@thatblindgeye Tested the updated demo and the open/close drawer is much more clean and intuitive, well done and thank you! Merging...

@mfrances17 mfrances17 merged commit 22d074f into patternfly:main Jan 14, 2025
13 checks passed
@patternfly-build
Copy link
Contributor

Your changes have been released in:

Thanks for your contribution! 🎉

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.

Description list in Drawer demo
6 participants