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

Restructure semantic HTML #3252

Open
jcoyne opened this issue Aug 2, 2024 · 0 comments · May be fixed by #3398
Open

Restructure semantic HTML #3252

jcoyne opened this issue Aug 2, 2024 · 0 comments · May be fixed by #3398
Milestone

Comments

@jcoyne
Copy link
Member

jcoyne commented Aug 2, 2024

Currently the HeaderComponent contains the search bar. However, I think it would be better semantics to move the search bar into the <main> https://github.com/projectblacklight/blacklight/blob/main/app/views/layouts/blacklight/base.html.erb#L38-L40. This means that the search form, available filters and results are all enclosed in <main> and not split across multiple elements.

Then we could have a structure like this:

<body>
  <header>
  </header>
  <main>
    <search>
       <form><!-- search bar goes here --></form>
       <section><!-- selected options --></section>
       <section><!--facets--></section>
       <section><!--search results--></section>
    </search>
  </main>
 </body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant