-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Dropdown] Updated stylings, states and stories #176
Conversation
✅ Deploy Preview for cfpb-design-system-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
fix: [Dropdown] Make story names sentance case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Should we try to better align stories to what is in the DS?
- Sigmund has done a great job of demonstrating what is possible with the Dropdown component but a lot of the scenarios are not represented in the DS ("With error", "Disabled", "Multi-select with checkboxes", etc). I could use some clarification on the source for all of the features that are not outlined in the DS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I pushed a commit to update story names to
sentence case
- I pushed a commit to update
Dropdown
toDropdowns
, to align with the way we've been updating the naming of Story pages
@meissadia @natalia-fitzgerald The The good thing is those non-CFPB Design items can be disabled via a prop. We should discuss on how far we can deviate from the CFPB Design System. |
… look like the cfpb design
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality looks great! Could use some code cleanup.
- Border for Dropdown -> Error feels a bit heavy. I think I've seen it mentioned that it should be 2px?
- Still in discussion but we should match the DS multiselect's :focus and :hover styles as closely as possible for now
There are known bugs in the CFPB Design System - Multiselect component that we should keep in mind as we build out this component. We can then contribute back to the system while we build the React component library. Some known bugs are documented here: https://github.com/cfpb/design-system/issues?q=is%3Aissue+is%3Aopen+multiselect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- For the Multiselect remove the "x" within the input field (and the gray box)
- We can handle the clear function at the form level
- For the Multiselect use the standard CFPB styling for the focus state
- Changes to the focus state would be global and affect the rest of our CFPB custom components (this is out of scope for this effort)
There are known bugs in the CFPB Design System - Multiselect component that we should keep in mind as we build out this component. If we have ideas about how to solve these issues we can contribute back to the system while we build the React component library.
Some known bugs are documented here:
- https://github.com/cfpb/design-system/issues?q=is%3Aissue+is%3Aopen+multiselect
- [GHE]/CFGOV/platform/issues/3291
- [GHE]/CFGOV/platform/issues/3283
- Multiselect: On desktop drop-down options lose background fill design-system#1728
|
@natalia-fitzgerald Thanks for pointing out the problems in the source CFPB design system. I followed the system as best as I can, I updated the screenshots at the top for you to review. Also, would like to discuss about the 'Clear Form' button. |
@meissadia I removed comments, console.logs and dead code. Thanks for pointing them out. |
Co-authored-by: Meis <meissadia@gmail.com>
…eact into 173-Dropdown-Update
fix: Open reference link in external tab fix: Expand abbreviated variable names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shindigira Please take a look at the adjustments I made to confirm you're okay with them
Closes #173
Changes
error
prop that causes a red border around the Dropdowncontrolled
manner.How to test this PR
yarn vitest
yarn storybook
Screenshots
Default
Error
Multiselect with Pills and Checkboxes
Multiselect -- Menu Options (Dotted Outline While Focused)