Repository navigation
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
|
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>
); |
ppisljar
left a comment
There was a problem hiding this comment.
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.
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.
…)" (elastic#29662) This reverts commit a5717c7.
Fixes the build issues introduced in elastic#25563 and re-introduces the new react/eui/typescript filter bar, essentially reverting the revert in elastic#29662. I did have to resolve one merge conflict in query_bar.tsx, and re-deleted all of the old filter bar code where translation code had been added.
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