-
Notifications
You must be signed in to change notification settings - Fork 842
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
Allow open-in-new-tab from the kibana search bar #5408
Comments
Pinging @elastic/kibana-core (Team:Core) |
We're directly using the Looking at the html, there isn't any @elastic/eui-design do you think this is something that would make sense / that is doable? (or is there a way to achieve this without upstream modifications?) |
My first thought was to peek at your I do think there has to be an EUI upstream change here, either:
Thoughts? Is there another option I'm missing? |
There was some rigorous work done on this component to make it more accessible. But I think it came at a cost of presenting real hyperlinks that behave like links. My instinct is to involve @1Copenut in helping on this since he's now familiar with the EuiSelectable component that this is based on and probably get this figured this out from the EUI side. If @1Copenut agrees, we can transfer this issue to the EUI repo. |
UPDATE 6/9/2022: If we're giving users a finite list of options, like say, data visualization types (bar, line, pie, donut, et al) that's an ARIA listbox. The role is defined on the containing UL, and screen readers announce it as a listbox with N number of options. Latest ARIA pattern here: https://www.w3.org/WAI/ARIA/apg/patterns/listbox/ If we're letting users navigate to a different page and expect the options to behave as normal links, then the role of the containing UL should become that of "menu". A menu is announced differently, and pressing the Enter key will fire the link behavior. Holding Our sitewide search is unique in that it combines a typeahead input and this actionable list in something akin to a combobox pattern, but we're also blending some menu behaviors into it. My biggest challenge with this question has always been a way to distinguish listboxes that users make selections for the current screen vs. listboxes that contain links for site traversal. The role I've been thinking about this one for a couple of hours. I agree with @constancecchen and @cchaos that this should be moved to EUI and we allow developers to pass in HTML that'll allow real links or buttons to be rendered on the page. I can see at least two use cases for this component:
I'd like to focus on |
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment. |
This would definitely still be appreciated. Kibana scope is pretty big so I find the search bar easier to use than trying to find what I need in the left-hand navigation. I work around the problem by doing:
It's not terrible, but it's clunky. |
@pgayvallet @matschaffer I'm working on an interim solution that will allow you to hook into the click/keyboard events and conditionally adjust your onChange behavior based on whether Here's an example commit of what Kibana's changes would look like: 1d893f4 Instead of |
I think it would be fine for our usecase. |
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment. |
❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error. |
Reopening and adding a link to elastic/kibana#77663 as a reference to Pierre's comment in the EuiSelectable |
@afharo Can you clarify what behavior you're looking for on EUI's end? If it's the ability to detect If it's the ability to right click and interact with the items like a normal link, then we do not currently support this - but it would be nice to get clarity that that is indeed the functionality you want. |
Oh! I misread this conversation then. Closing the issue. @constancecchen, thank you for confirming it's already supported 🧡 |
Yes! The |
Describe the feature:
When using the search bar to navigate, allow shift click (or maybe shift-enter) to open in a new tab
Describe a specific use case for the feature:
Often I want to move between my app of focus (stack monitoring for me) and dev tools to check underlying queries. The search bar is handy for this but it always opens in the same tab.
My work around it to navigate, then click cmd+back to get a new tab where I was.
It'd be nice if I could have the new app open in a new tab (probably via cmd+click on mac) so I don't potentially lose my in-browser state on the existing tab.
The text was updated successfully, but these errors were encountered: