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

feat(ChatbotModal): Add style-able modal for general use #307

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented Nov 11, 2024

Exposing the parent of the code modal so you can put whatever you want in it and pick up the style changes we've made for chatbot.

I tested against everything in regular PF. Custom sizes and widths won't work, and the wizard won't work outside of fullscreen without some adjustments, but every other example from our site plugs in and looks non-broken to me.

@rebeccaalpert rebeccaalpert linked an issue Nov 11, 2024 that may be closed by this pull request
@patternfly-build
Copy link

patternfly-build commented Nov 11, 2024

@rebeccaalpert rebeccaalpert force-pushed the custom-modal branch 3 times, most recently from efdf26d to 4247575 Compare November 12, 2024 00:14
Copy link
Contributor

@edonehoo edonehoo left a comment

Choose a reason for hiding this comment

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

I noticed that when you open the modal, the close button seems to be in a hover state by default (until you click into the modal). Not sure if that's how it's meant to be, so I just wanted to mention!

little rewording, but I'm more than open to tweaking it more~

@rebeccaalpert rebeccaalpert force-pushed the custom-modal branch 3 times, most recently from e9a2c67 to 829b8de Compare November 14, 2024 19:26
Copy link

@kaylachumley kaylachumley left a comment

Choose a reason for hiding this comment

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

👍

@rebeccaalpert rebeccaalpert force-pushed the custom-modal branch 2 times, most recently from d4860d5 to b7b1530 Compare November 15, 2024 20:24

### Modal

Based on the [PatternFly modal](/components/modal), this modal adapts to the chatbot display mode and accepts components typically used in a modal. It is primarily used and tested in the context of the [attachment modals](/patternfly-ai/chatbot/messages#attachment-preview), but you can customize this modal to adapt it to other use cases as needed.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it true and/or worth noting that the modal will overlay the chatbot depending on the display mode of the chatbot? and should that something we can demonstrate in the example?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can add it to the example. What do you think @edonehoo? I'm fine with adding that; maybe this?

Based on the PatternFly modal, this modal adapts to the chatbot display mode and accepts components typically used in a modal. It is primarily used and tested in the context of the attachment modals, but you can customize this modal to adapt it to other use cases as needed. The modal will overlay the chatbot in default and docked modes, and will behave more like a traditional PatternFly modal in fullscreen and embedded modes.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that sounds great!

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Just updated both the text and example; let me know if you like this any better.

Add chatbot to example and update text.
@nicolethoen nicolethoen merged commit 3116c95 into patternfly:main Nov 19, 2024
5 checks passed
Copy link

🎉 This PR is included in version 2.1.0-prerelease.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

@edonehoo edonehoo linked an issue Nov 20, 2024 that may be closed by this pull request
This was unlinked from issues Nov 20, 2024
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.

5 participants