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(Compare): Add compare layout #399

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented Jan 8, 2025

Demo is here for now: https://chatbot-pr-chatbot-399.surge.sh/patternfly-ai/chatbot/overview/demo/comparing-chatbots/

I stuck it under Overview/Demos for now (https://chatbot-pr-chatbot-399.surge.sh/patternfly-ai/chatbot/overview/demo#comparison), but totally happy to move it elsewhere. All I'm shipping as part of the extension for this is a handful of CSS classes.

Will generate screenshots once we decide on docs placement.

@rebeccaalpert rebeccaalpert linked an issue Jan 8, 2025 that may be closed by this pull request
@patternfly-build
Copy link

patternfly-build commented Jan 8, 2025

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.

✍️✍️

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.

mentioned a small nitpick that I last-minute noticed, but nothing that holds this back!


return (
<Page masthead={masthead} sidebar={sidebar} isContentFilled>
<div className="pf-chatbot__compare-container">
Copy link
Contributor

Choose a reason for hiding this comment

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

so these classnames are being used in the demo as necessary to create the layout and apply styles. I think they are going to need to be included/called out in the demo docs somehow. Could you maybe add a nolive code block in the content above the example to outline the structure and classes needed? Something like an outline... like:

<Page or PageSection>
  <div className="pf-chatbot__compare-container">
    <div className="pf-chatbot__compare-mobile-controls">
      ...
    </div>
  </div>
</Page or PageSection>

Copy link
Member Author

Choose a reason for hiding this comment

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

All set!

@rebeccaalpert rebeccaalpert force-pushed the compare branch 2 times, most recently from 45d741e to f4eb2ae Compare January 10, 2025 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

Successfully merging this pull request may close these issues.

Document pattern for compare
4 participants