-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Migrate filter bar to React, EUI, and Typescript #25563
Conversation
Pinging @elastic/kibana-app |
💔 Build Failed |
a3425c2
to
d46fdeb
Compare
💔 Build Failed |
💔 Build Failed |
e9d35b0
to
7912143
Compare
💔 Build Failed |
💔 Build Failed |
b0997ea
to
665a016
Compare
💔 Build Failed |
f1bdea0
to
3b158aa
Compare
💔 Build Failed |
729fc5c
to
7c2f9e8
Compare
💔 Build Failed |
💔 Build Failed |
31851d2
to
2cbddb1
Compare
💔 Build Failed |
2cbddb1
to
888ffb2
Compare
💔 Build Failed |
💔 Build Failed |
79a944a
to
dc94d4f
Compare
💚 Build Succeeded |
Hey @cchaos did you have a chance to look at those screenreader issues I mentioned? |
Not yet, sorry, I will try to get to that next. |
You need to add some Filter trigger button const filterButtonTitle = `${this.state.filters.length} filters applied. Select to ${this.state.isFiltersVisible ? 'hide' : 'show'}.`;
const filterTriggerButton = (
<EuiFilterButton
...
title={filterButtonTitle}
>
Filters
</EuiFilterButton>
); EuiGlobalFilterItem let title = `Filter: ${prefix} ${field}: "${value}". Select for more filter actions.`;
if (isPinned) {
title = `Pinned ${title}`;
} else if (isDisabled) {
title = `Disabled ${title}`;
}
const badge = (
<EuiBadge
...
title={title}
iconOnClick={this.deleteFilter}
iconOnClickAriaLabel={`Delete filter`}
onClick={this.togglePopover}
onClickAriaLabel="Filter actions"
>
{prefix}
<span>{field}: </span>
<span>"{value}"</span>
</EuiBadge>
); |
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.
tested it on windows with edge, seems to work fine (except that whole kibana performs super slow there and our sample dashboards are pretty much unusable)
tested also in IE11, works fine as well (performance is actually way better than in edge, there is some weird flickering happening when selecting dropdown values, but everything is usable.
LGTM
Thanks @cchaos, I added titles the badges. Could you take a look at the custom label switch as well? As far as I can tell we're passing in the exact same props as in the demo, but the label is not getting read out by the screenreader, even though it's working in the demo. |
💔 Build Failed |
💚 Build Succeeded |
It's actually not working in the EUI docs either because it requires an |
to it and screenreaders will be able to read the text
@cchaos hmmm weird, you're right, adding an id fixed it in this PR. The global header demo doesn't pass an ID though and it was working for me in MacOS's VoiceOver. Strange. |
💔 Build Failed |
💚 Build Succeeded |
text so that it can be used in the filter apply modal as well
💚 Build Succeeded |
…)" This reverts commit 410c094.
…stic#25563)" (elastic#29662)" This reverts commit 45b24af.
Summary
Rewrites the filter bar in React, EUI, and Typescript. Updates the look and feel of the filter bar and makes it consistent with the rest of K7.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] Documentation was added for features that require explanation or tutorialsFor maintainers