-
Notifications
You must be signed in to change notification settings - Fork 23
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] <rh-chip>
element
#1456
Comments
@dcaryll Just so you're aware, here are some concepts that are being explored and reviewed. https://www.figma.com/proto/JbdmuSkfh0CuzqUZixb1UY?node-id=1-5&locale=en |
These are great explorations! Thanks for sharing.
I think it's important to note how labels and chips can be distinguished
from one another.
*Dan Caryll*
Senior Manager, UX Design and Development
Red Hat - NC
100 E Davie Street
***@***.***
…On Tue, Feb 20, 2024 at 3:37 PM coreyvickery ***@***.***> wrote:
@dcaryll <https://github.com/dcaryll> Just so you're aware, here are some
concepts that are being explored and reviewed.
https://www.figma.com/proto/JbdmuSkfh0CuzqUZixb1UY?node-id=1-5&locale=en
—
Reply to this email directly, view it on GitHub
<#1456 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJRDU522GMEYOAPXG7W7GDYUUCQZAVCNFSM6AAAAABCFV55BKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVGAZTSMJXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@markcaron @hellogreg I would like to get this done in |
pf-chip composes into pf-text-input for things like search. will rh-chip do the same? would that change it's semantics or usability? cc @adamjohnson |
Was the This is a common pattern seen on the web. Unfortunately, as far as I can tell, the APG Patterns don't have guidance for an input containing multiple selected items (correct me if I am wrong). Select2 is a classic library that does this but has had accessibility issues over the years. IMO, we should steer users away from this UI pattern until the accessibility story becomes more solidified. |
@adamjohnson I think pf-chip is being deprecated in PatternFly 6. I am checking with the team about this. [DEPRECATED FILE] is a comprehensive file of what I have been working on for Edit: This no longer applies, see comment below.
|
@adamjohnson According to the PatternFly team, If |
@coreyvickery Just FYI had a short conversation with @eyevana about |
Update 5/22: Design leads will give feedback on this component on Tuesday, May 28. Marionne will present as Corey will be out. |
@markcaron Do we need anyone else to approve of the current design or can we proceed with development? |
@coreyvickery if design is good with it, then I'm good with it. |
Thanks for putting this design together. It's very helpful! I have a few questions for you. I put together a little scratchpad demo to help clarify some things with Chip. There are obv lots of issues with spacing and it lacks variants and whatnot, but reference it when looking over my questions below:
|
@adamjohnson Thanks for the demo and writing these questions. I'm going to check with Krystal one last time to make sure she has what she needs from a design standpoint before we continue with development. I should have an answer in a day or two. |
@adamjohnson Let's meet about the following after I talk with Krystal.
|
@adamjohnson @coreyvickery if we also create an |
@coreyvickery, I chatted with Krystal, Dustin, and Grady about chip and got some feedback about the visual design:
Re: question about it functioning like a radio button or a checkbox: It sounds like search would need a chip group that functions like a radio button. Search would also need the ability to remove individual chips from a group. Could we have a chip variant for each function? Unsure what we would name the variants. Having different variants might also help answer @adamjohnson's questions about what the close button does. |
@adamjohnson, would the "Filter by:" count as a |
@coreyvickery: Thanks for this document! It provides some much-needed clarifications. RE: Truncated Chip TextSince the text is in the light DOM and can be styled by end users, we can make this a pattern. We can include documentation regarding text truncation while recommending a maximum character count and provide clear Do/Don’t examples. Generally, truncating text via CSS hides content, which can negatively impact users. IIRC, we had a similar discussion with Updates & Implementations
Concern: Overflow ChipOne concern for this release is implementing the "Overflow" chip (e.g., "View all," "5 more," or "Show less"). While this pattern is straightforward in traditional implementations, working within the constraints of web components adds complexity. Given the short time frame before release—and considering I’ll be on PTO from March 6-11—delaying this feature to the next release may help us ship the component faster while maintaining quality. With Cubone scheduled for release on April 1st, ensuring enough time for development and review is critical. Concern:
|
TruncationI'm fine with not truncating text. OverflowI'm fine with delaying this.
|
@coreyvickery, yeah, I think @adamjohnson, I think I mistranscribed some notes when I said that search would need it to function like a radio button because search should allow for multiple chips to be selected/added to a group. Sorry about that! |
Yes, for now rh-chip will only have checkbox functionality due to the concerns outlined above. I'll work on getting the colors synced from |
Update 3/13: Docs are in progress. |
Description
RHDS needs the have the ability to filter pieces of content using "chips". This is typically a single taxonomy way of filtering versus the multiple ways of filtering that a taxonomy box offers.
https://www.patternfly.org/components/chip/
Example in production on cloud.redhat.com/learn

Acceptance Criteria
Image
No response
Link to design doc
No response
Other resources
No response
The text was updated successfully, but these errors were encountered: