Code Monkey home page Code Monkey logo

Comments (2)

joelhooks avatar joelhooks commented on August 24, 2024

this is intentional and wonโ€™t be moved to the header on the search page right now

we can reevaluate in the future

from egghead-next.

MaggieAppleton avatar MaggieAppleton commented on August 24, 2024

We can certainly have two search bars - one in the navbar and one in the page itself. We just need to use the default text to let users know why they're different.
"Search for..." in the navbar
"Search for React content..." in the on-page search bar

That's an established design pattern:

image

It's confusing for learners to see the search bar there on one page, and have it disappear/move on another.

It makes it harder for them to find what they need, and breaks their understanding of where elements live on the site.

What if someone is on the React page and decides they want to search for Vue content instead?
It's multiple clicks back and forth for them to do it, rather than having the "escape hatch" of a navbar search element where they can jump to where they need to go


Also it is incredibly confusing that the minute someone types content into that search box, the whole React page dissappears and is replaced by search content.

I start here:

image

Start to type "hooks" into the search bar:

image

Whoa where did the page go and where am I now??

Hit back button -> end up back on the homepage instead of on the React page where I started
image

๐Ÿ˜ญ


Canonical research from Nielson Norman Group: https://www.nngroup.com/articles/search-visible-and-simple/

  • "The best designs offer a simple search box on the homepage and play down advanced search and scoping"
  • "Put the search box at the top of the page, usually in the right hand corner (though the left works almost as well)."
  • "you should make search available from every page on the site; you cannot predict where users will be when they decide they are lost"

from egghead-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.