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

fix(Search): add disabled prop #6916

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Sep 25, 2020

Closes #6915

This PR adds an explicit disabled prop and prop type definition to the Search component and updates the corresponding stories. Even though the prop currently works as expected, we should document this prop separately and add it to the storybook

Changelog

New

  • disabled prop on Search component and stories

Testing / Reviewing

Confirm that the Search component disabled state is still applied when passing in the disabled prop, and that there are no style regressions due to missing or incorrect selectors (the styles are already in the library)

@netlify
Copy link

netlify bot commented Sep 25, 2020

Deploy preview for carbon-elements ready!

Built with commit 033c992

https://deploy-preview-6916--carbon-elements.netlify.app

@emyarod emyarod force-pushed the 6915-search-component-disabled-prop branch from 8ca6014 to 1514972 Compare September 25, 2020 17:12
@emyarod emyarod requested a review from a team as a code owner September 25, 2020 17:15
@netlify
Copy link

netlify bot commented Sep 25, 2020

Deploy preview for carbon-components-react ready!

Built with commit 8ca6014

https://deploy-preview-6916--carbon-components-react.netlify.app

@tw15egan
Copy link
Member

Should the search icon use disabled token when disabled?

Screen Shot 2020-09-25 at 10 33 46 AM

@aagonzales
Copy link
Member

Yes, the icon should also be disabled-02

@netlify
Copy link

netlify bot commented Sep 25, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 033c992

https://deploy-preview-6916--carbon-components-react.netlify.app

@emyarod
Copy link
Member Author

emyarod commented Sep 25, 2020

I don't think the component currently changes the icon color when you add the disabled prop so this isn't a regression but I can make that change here as well

@tw15egan
Copy link
Member

Looks great! Just seeing a tiny flicker of focus if you click directly on the x when it is disabled

search

Copy link
Member

@tw15egan tw15egan 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! 👍 ✅

@joshblack
Copy link
Contributor

bump @andreancardona when you get a sec today 👀

Copy link
Contributor

@andreancardona andreancardona left a comment

Choose a reason for hiding this comment

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

@emyarod looks good :)

@kodiakhq kodiakhq bot merged commit 3c107c8 into carbon-design-system:master Oct 2, 2020
@emyarod emyarod deleted the 6915-search-component-disabled-prop branch October 6, 2020 18:12
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.

Search component missing disabled prop and definition
5 participants