-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature 1338: Suche anpassen #1401
base: develop
Are you sure you want to change the base?
Conversation
</ga-search> | ||
|
||
<span class="icon is-close" @click="${this.clear}"></span> | ||
<span class="icon is-search" @click="${this.toggleActive}"></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.
what exactly is the desired behavior on this? When i click the search icon, the result list just flickers
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 is for mobile only, where the search is only visible after clicking the search icon. On desktop, it should just focus the search input. Does something else happen for you (e.g. flickering)? I was not able to reproduce it as of yet.
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.
Maybe flickering is the wrong word, but when it is in focus already and i click it again, the results quickly disappear (while hodling the mouse) and then reappear. BUt this might just be browser behavior
const target = this.findActiveResult(); | ||
if (target != null) { | ||
const [item, _element] = target; | ||
this.selectItem(item, {keepFocus: true}); |
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.
i dont think we want to select the items on arrow keys, but only on click and enter. You can temporarily add the layers as preview, but they should not be added as permanent layers (see general comment)
c122c91
to
2ae8b39
Compare
Quality Gate passedIssues Measures |
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.
Looks pretty good, most things are fixed now.
Waiting for Nils to confirm which behavior he wants and the fixes for the inputs with event listeners on them/ disappearing clear button
@@ -333,6 +338,7 @@ export class SearchInput extends LitElementI18n { | |||
const child = results.children[i]; | |||
if (child.ariaSelected === 'true') { | |||
const item = this.resultItems[i]; | |||
console.log(item, child); |
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.classList.add('is-active'); | ||
} else { | ||
this.classList.remove('is-active'); | ||
console.log(changedProperties); |
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
<ul ${ref(this.resultsRef)}></ul> | ||
</ga-search> | ||
|
||
<span class="icon is-close" @click="${this.clear}"></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.
this now disappears as soon as i start searching
Edit: this was introduced in faab0bd7
</ga-search> | ||
|
||
<span class="icon is-close" @click="${this.clear}"></span> | ||
<span class="icon is-search" @click="${this.toggleActive}"></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.
Maybe flickering is the wrong word, but when it is in focus already and i click it again, the results quickly disappear (while hodling the mouse) and then reappear. BUt this might just be browser behavior
display: none; | ||
} | ||
|
||
:host:not(.is-active) .icon.is-close { |
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 can be reomved, right?
Resolves #1338.