Navigation Menu

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

LPS-112603 portal-search-elasticsearch7-impl:add http port from ElasticsearchConfiguration instead of the default one. #833

Conversation

wcao20170619
Copy link

No description provided.

Hanlf and others added 30 commits April 28, 2020 08:51
With `npx yarn-deduplicate yarn.lock`.
As discussed here
wincent#235 (comment)
strict equality (`===`) will be enforced soon by our linter so we don't
want to use "loose equality" (`==`) for new files
… the minifier

Apparently there is nothing wrong but there seems to be some problem with the minifier that is confusing itself with some expressions, babel transforms the String Literal to `goog.module("".concat(variant, "Adapter.incrementaldom"));`.
…ldren making impossible to drag something inside the collection items
victorg1991 and others added 21 commits April 28, 2020 08:58
…ime. Removing role alert when the banner gets focus so screen readers are reading again and again with every update
Based on:

wincent#231

I think there were a few of problems with that approach:

- Missing "]" at end of selectors.
- `blur()` would explode, because as soon as we remove the
  `[role="alert"]`, the `A.one()` call has nothing to find, will return
  `null` and we die calling `.setAttribute()` on `null`.

So, this commit makes a few changes:

- If we always pass `counterTextNode` into
  `_uiSetRemainingTime()`, we don't need to re-find the node inside that
  method.
- Rather than finding `[role="alert"]` anywhere in the document, scope
  the search more tightly by using `.closest()` and starting from the
  counter.
- Store the found alert in `this._alert` so that we can find it later on
  when restoring the `[role="alert"]`.

The remaining problem:

I am not sure whether `blur()` is the right place to restore the role.
For example, if I have focus on the alert close button, and I tab to the
"Extend" button, `blur()` will fire because the close button lost focus,
and that bubbles (apparently; that seems non-standard to me, but maybe
it is an AUI thing, because that's what I'm seeing when I test this).
As a result, `[role="alert"]` gets added back and then removed again
after 1 second.

Notes on YUI and "blur" bubbling:

- https://yuilibrary.com/yui/docs/event/focus.html (they fake it).
- https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event
  (it is not supposed to bubble).

So one final change, I make sure we only blur when the focus really
leaves the entire notification, using `contains()` and `relatedTarget`.
Still need to confirm that that is right: for example, when the alert
shows, we remove `[role="alert"]` after one second; if you then tab out
of the alert, we add back the `[role="alert"]`, and one second later, it
gets removed again.
As described here:

antonio-ortega#113 (comment)

> I tested in VoiceOver. When you tab away from the alert, you do indeed
> hear the alert again after one second (but only once). I think the
> right behavior, then, might be to *not* re-add the role on `blur`,
> but rather, on *next* `focus`; ie. only when re-focusing, and with
> the same `relatedTarget` check to make sure that fake event bubbling
> doesn't destroy everything.

So, this commit moves the code from `blur` to `focus`. Re-testing shows
that it gives the desired result, at least with VoiceOver. Reads out the
alert text when the alert first appears; doesn't re-read it just because
you tab around inside the alert; but does re-read it exactly once when
you tab back into the alert from the outside.
…r value to avoid 3rd party pop-up/modal/maximize solution to interfere
@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

@arboliveira
Copy link
Owner

Merged to dev branch. Thanks!

@arboliveira arboliveira closed this May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet