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

[EuiListGroup] Add external prop #3858

Closed
cauemarcondes opened this issue Aug 4, 2020 · 9 comments
Closed

[EuiListGroup] Add external prop #3858

cauemarcondes opened this issue Aug 4, 2020 · 9 comments
Labels
feature request ⚠️ needs validation For bugs that need confirmation as to whether they're reproducible stale-issue stale-issue-closed

Comments

@cauemarcondes
Copy link

cauemarcondes commented Aug 4, 2020

Like on EuiLink component that has an external property to show an icon which indicates that a link will open on a new window/tab I'd like to add the same property for the EuiListGroup.

Screenshot 2020-08-04 at 11 21 27

The listItems property could receive something like:

{
    iconType: ICON_NAME,
    label: LABEL,
    href: URL,
    external: true
  },

I'll use it on the Observability Overview page, to show the user that some links open on a new tab. elastic/kibana#74223

@cchaos
Copy link
Contributor

cchaos commented Aug 18, 2020

I'm not quite sure how this would then interact with the possible extraAction prop which adds a node to the right of the list item. Also, looking at your example, they seem to be referencing the "Read full story" link at the bottom the the article summaries. Could you not just use a regular EuiLink there?

@cauemarcondes
Copy link
Author

I'm not quite sure how this would then interact with the possible extraAction prop which adds a node to the right of the list item. Also, looking at your example, they seem to be referencing the "Read full story" link at the bottom the the article summaries. Could you not just use a regular EuiLink there?

@cchaos I'm sorry I should have been more clear. I want to show the external icon on the Resources items and on the read full story.

Screenshot 2020-08-19 at 09 25 47

@cchaos
Copy link
Contributor

cchaos commented Aug 19, 2020

Ahh I see. I think you still have an issue though where links/buttons should not be sandwiched between icons. Contextually, looking at this list of "Resources" I would fully expect them to take me outside of the current product. I do not think it is necessary to indicate external. It's similar to how Kibana handles it's Help menu:

Screen Shot 2020-08-19 at 10 46 49 AM

The icons purely indicate where the link will take them, but adding the external popout logo to every single link will just add noise making it harder for users to scan the list.

@cauemarcondes
Copy link
Author

It does make sense @cchaos , @formgeist what do you think?

@formgeist
Copy link
Contributor

@cchaos Thanks for the feedback on this. I definitely agree with your point about the shear icon overload of having both left and right icons in a list of links. The main concern I've heard from internal folks (mostly) is that we're not indicating when we're opening the link in the same or in a new window. We tend to open internal Kibana links in the same window and external links in a new window. The external icon on the EuiLink does indicate this, I wonder if we perhaps need to have it appear on hover or something similar, which doesn't create consistent visual noise in the list, but only when the user is interacting with the link. Thoughts?

@cchaos
Copy link
Contributor

cchaos commented Aug 19, 2020

I do really like the on hover/focus idea but we'd have to be careful about the space we supply for it. For instance, if the link is within a paragraph of text how do we handle the appearance of an icon within?

Image 2020-08-19 at 5 38 12 PM

There's also still a lot to consider with the EuiListGroup (the original ask) though because of the extraAction. I'm open to suggestions on how to make this work.

@formgeist
Copy link
Contributor

@cchaos Very valid points on the general behavior of the external link prop and an example where hover won't work all that great. I'll look into some solutions around adding the popout indication on links, even in cases like EuiListGroup with extraAction enabled.

@cchaos cchaos changed the title Add external property to EuiListGroup [EuiListGroup] Add external prop Sep 20, 2020
@cchaos cchaos added discussion ⚠️ needs validation For bugs that need confirmation as to whether they're reproducible labels Sep 20, 2020
@github-actions
Copy link

👋 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.

@github-actions
Copy link

❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request ⚠️ needs validation For bugs that need confirmation as to whether they're reproducible stale-issue stale-issue-closed
Projects
None yet
Development

No branches or pull requests

3 participants