-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Management] Highlight query in results for index pattern creation wizard #16529
Conversation
…invalid, but there shouldn't be an error
💔 Build Failed |
jenkin, test this |
💚 Build Succeeded |
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.
The fixes are as promised, but I noticed some smaller UI issues. When there are illegal characters, the "Index Pattern" label and input field border are blue instead of red. The label becomes red if I click on it. The label and border also become red if I focus away from the page (to any other window), but returns to blue once I focus on the page again. See recording from Chrome:
Nice catch @jen-huang! It seems the focused state is overriding the error state. Is that intentional @snide or @cjcenizal ? |
@chrisronline @jen-huang Yes, this is intentional. For accessibility, the focused state should override other states so you can always tell which part of the UI has focus. |
Thanks for clarifying @cjcenizal! |
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.
LGTM after the clarifications 😸
…zard (elastic#16529) * Highlight matches in the table * Address issue with showing an error when the user types `.` which is invalid, but there shouldn't be an error * Use strong
Backport 6.x: 4b04332 |
Fixes #16297
16297
This PR fixes a visual regression where we used to highlight the query within the results in the table. For example, if you query for
ki
and one of the results iskibana
, theki
part ofkibana
will appear bold.Other Fix
This PR also fixes an undocumented issue where typing in
.
will result in an error which isn't desired. That query is technically invalid, but there isn't a reason to show the same error as we show when the user typed in an illegal character. The fix for this warranted removingisIndexPatternQueryValid
and replacing it withcontainsIllegalCharacters
.Previously:
Now:
Backporting
This needs to be backported to 6.2.1, but only part of the React code is in 6.2 so I'll just backport 920c59e and 2416dd8
/cc @cjcenizal