-
Notifications
You must be signed in to change notification settings - Fork 38
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
Search #37
Search #37
Conversation
Conflicts: src/assets/js/app/modules.js
Looking through the PR. Just in case you didn't notice: the branch has can't be merged at the time being. |
Conflicts: src/components/global/navbar/_navbar.scss
<div class="search js-search"> | ||
<h2 class="visuallyhidden">Search</h2> | ||
<button class="search--toggle"> | ||
<span class="visuallyhidden">Search</span> |
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.
Better call it Show / hide search
.
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.
By the way, closing doesn't work yet. Is this easy to implement (by clicking on the icon again, or by pressing Esc)? Otherwise, naming the button "Open search" only makes more sense.
<h2 class="visuallyhidden">Search</h2> | ||
<button class="search--toggle"> | ||
<span class="visuallyhidden">Search</span> | ||
</button> | ||
<input class="search--input" type="text"> |
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.
This input doesn't have an ID, so it can't have a <label>
. But every input needs a label.
@@ -1,5 +1,8 @@ | |||
<div class="search"> | |||
<h2 class="visuallyhidden">Suche</h2> | |||
<div class="search js-search"> |
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.
We should add a role="search"
here (which is one of the very few ARIA landmarks that don't have an HTML5 equivalent).
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.
Added some hints and comments.
All in all, this looks very promising. 👍 At the time being though, it's sometimes unclear why certain results are shown upon the entered string: In Google, besides the title of a search result, some extracts of the page are displayed, so the user has more context. Is something possible in SS360? Other than that, examples are indexed, leading to useless and confusing suggestions (Hobbies): Is it possible to remove certain pages from the index, for example |
@jmuheim I didn't do any configuration in SS360 yet, so the results are coming from the default setup and are expected. They will be much better after the fine-tuning. |
Instead of announcing the currently selected value, it always announces the first radio button: Here the comparison to the example: If you want to play around with the example: https://deploy-preview-37--festive-mcnulty-536163.netlify.com/examples/widgets/autocomplete/_examples/autocomplete-with-radio-buttons/ I think somehow the focus does not stay in the filter input as expected, but is taken to the radio button buttons. |
@jmuheim thanks for reporting. |
@jmuheim would you have some time to test these Site Search 360 examples (mainly the "Embedding" one) https://sitesearch360.com/docs/example-simple.html |
@jmuheim As discussed, I've reverted back to using the Site Search 360 provided widget. |
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.
See my comments. Otherwise: nice! 👍 Thank you.
<button class="search-btn">Suche</button> | ||
<div class="search js-search" role="search"> | ||
<h2 class="visuallyhidden">Search</h2> | ||
<h3 class="visuallyhidden">Search</h3> |
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.
One too much! ;)
@@ -0,0 +1,137 @@ | |||
import $ from 'jquery' |
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.
Remove this file
@@ -0,0 +1,295 @@ | |||
import $ from 'jquery' |
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.
Remove this file
No description provided.