Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

chore(docs): Add demo for version selector card#644

Merged
rebeccaalpert merged 1 commit intopatternfly:mainpatternfly/chatbot:mainfrom
rebeccaalpert:options-cardrebeccaalpert/virtual-assistant:options-cardCopy head branch name to clipboard
Aug 12, 2025
Merged

chore(docs): Add demo for version selector card#644
rebeccaalpert merged 1 commit intopatternfly:mainpatternfly/chatbot:mainfrom
rebeccaalpert:options-cardrebeccaalpert/virtual-assistant:options-cardCopy head branch name to clipboard

Conversation

@rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented Aug 5, 2025

Adding demo for card as custom component. It is not something we ship, but providing proof we can enable complex card behavior as an injected component.

Figma: https://www.figma.com/design/SMwsdq7hW9MuTXrCUmMzJh/Spec--Version-Selector-Card?m=auto&t=jtOQxhPMXabq1wmC-6

Demo: https://chatbot-pr-chatbot-644.surge.sh/patternfly-ai/chatbot/messages#custom-message-content

Mark's design is a divergence from PF defaults - did some overrides here to get us closer to the design, but can back things out or move styles around - just let me know. Left label blue as-is intentionally to avoid token overrides there.

Will bug CSS friends for review as well - want to see which of them has time.

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

patternfly-build commented Aug 5, 2025

Copy link
Member

@srambach srambach left a comment

Choose a reason for hiding this comment

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

If you already have the utility classes imported, or you want to do it that way, I suggested a couple that could replace redefining the custom properties. But if not, how you have it is fine.

@rebeccaalpert
Copy link
Member Author

Thanks @srambach - added utility classes!

Copy link
Member

@srambach srambach left a comment

Choose a reason for hiding this comment

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

Looks great 😄

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.

Hey! this is looking really good! just a few comments /changes. Couldn't find the right spot to leave the change request so ill attach some screenshots with notes. lmk if you have questions

changes:

  • lets use a compact label instead of the default size label
  • lets use an 8px spacer between the text and label. use this token pf-t--global--spacer--gap--text-to-element--default
  • lets use 16px padding between the primary and link button at the bottom of the card. using this pf-t--global--spacer--md
Screenshot 2025-08-11 at 3 51 29 PM Screenshot 2025-08-11 at 3 57 38 PM Screenshot 2025-08-11 at 4 01 23 PM

@rebeccaalpert
Copy link
Member Author

All set @kaylachumley!

I'm skipping using pf-t--global--spacer--gap--text-to-element--default explicitly because it'll get confusing to read the code (using PF layout components with their own spacing tokens), but I adjusted what we were telling it to do to get what you want.
Screenshot 2025-08-12 at 11 01 15 AM

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.

looks good! thank you!

@rebeccaalpert
Copy link
Member Author

Rebased after merging other card.

@rebeccaalpert
Copy link
Member Author

Rebased again after @wise-king-sullyman's merged; moved other examples to use Bot, cleaned up imports a bit, and moved code block down a little.

@rebeccaalpert rebeccaalpert merged commit a1aeed5 into patternfly:main Aug 12, 2025
7 checks passed
@github-actions
Copy link

🎉 This PR is included in version 6.4.0-prerelease.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

rebeccaalpert added a commit to rebeccaalpert/virtual-assistant that referenced this pull request Oct 24, 2025
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.

RFE: New Component - Version Selector Card

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.