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(Search): add "placeholder" & documentation #4282

Conversation

rohanrav
Copy link
Contributor

@rohanrav rohanrav commented Sep 2, 2021

Fixes #3806.

@welcome
Copy link

welcome bot commented Sep 2, 2021

💖 Thanks for opening this pull request! 💖

Here is a list of things that will help get it across the finish line:

  • Run yarn lint locally to catch formatting errors. This will fix some errors automatically, commit and push any changes.
  • Run yarn test locally to catch errors. This ensures all components still behave as they should.
  • Run yarn start to run the doc site locally and try a few pages, ensuring everything is in good working order.
  • Include tests when adding/changing behavior.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@codecov-commenter
Copy link

codecov-commenter commented Sep 2, 2021

Codecov Report

Merging #4282 (6cca9a4) into master (8d4558a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4282   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         180      180           
  Lines        3241     3241           
=======================================
  Hits         3233     3233           
  Misses          8        8           
Impacted Files Coverage Δ
src/modules/Search/Search.js 99.55% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d4558a...6cca9a4. Read the comment docs.

@rohanrav
Copy link
Contributor Author

rohanrav commented Sep 2, 2021

Here is the issue this PR addresses: #3806

@rohanrav rohanrav changed the title docs: add search placeholder API documentation docs(Search): add search placeholder API documentation Sep 2, 2021
@layershifter layershifter changed the title docs(Search): add search placeholder API documentation feat(Search): add "placeholder" & documentation Jan 14, 2022
@layershifter
Copy link
Member

@rohanrav great job, I also added a small unit test 🐱

@welcome
Copy link

welcome bot commented Jan 14, 2022

Congrats on merging your first pull request! 🎉🎉🎉

robot victory dance

@noinkling
Copy link
Contributor

noinkling commented Jan 25, 2022

Hmm, this change causes the search's <input> element to have a superfluous (no value) placeholder attribute when it isn't provided. I would rather avoid that.

I think it might be because of assigning it an empty string in defaultProps? That doesn't seem necessary to me anyway.

@layershifter
Copy link
Member

Hmm, this change causes the search's <input> element to have a superfluous (no value) placeholder attribute when it isn't provided. I would rather avoid that.

I think it might be because of assigning it an empty string in defaultProps? That doesn't seem necessary to me anyway.

@noinkling good call, yeah it should be removed from defaultProps. I will make a PR.

@layershifter
Copy link
Member

@noinkling #4327

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 placeholder is implemented but not documented
5 participants