Skip to content

[EuiIcon] Add tokenVersion  #5520

Closed

Description

@Dosant

In Kibana we would like to improve support for fields of semantic version type:

Would be nice to have a new token in EUI for this type of field: https://eui.elastic.co/#/display/icons#tokens,
Visually, I think it should somehow be related to semantic version "syntax" e.g.: 1.* or v1

By coincidence tokenVariable could be a decent fit (v) until something specific is implemented.

Activity

  1. elizabetdev commented on Jan 6, 2022

    @elizabetdev
    Contributor

    Thanks, @Dosant for opening this issue.

    I'm going to explore some ideas and then I can share the designs here. After that, we can decide what works best and add the new token to EUI.

  2. self-assigned this
    on Jan 6, 2022
  3. elizabetdev commented on Jan 20, 2022

    @elizabetdev
    Contributor

    Hi @Dosant,

    I started exploring some ideas and this is the design rationale:

    • I tried to avoid having numbers. Because it could confuse users to think that's the actual version.
    • I tried to just use letters and symbols
    • It has to look good in a 16px size. So more of two elements don't work.

    Based on this rationale I ended up with 4 versions:
    Frame 3@2x

    My favorite version and the one I believe it works better is the version 4:

    tokenVersion@2x

    Let me know if you agree to use version 4, or if you think any of the other versions work better.

  4. Dosant commented on Jan 20, 2022

    @Dosant
    ContributorAuthor

    @miukimiu, thanks! I agree with the reasoning and also like version 4 the most 👍

    I've also just thought about one more option: existing tokenTag. A tag is a label and a version is basically also a label (a label with some rules).

    Screen Shot 2022-01-20 at 15 17 13

    What do you think about this one?

  5. elizabetdev commented on Jan 20, 2022

    @elizabetdev
    Contributor

    @Dosant yes, the tokenTag works well for indicating a version. For example, GitHub uses it:

    Screenshot 2022-01-20 at 15 08 35

    And since PR #5251 this icon is no longer being used in Kibana. I did a quick search on the Kibana repo.
    So I would go for it! 🎉

    But when I look at this tokenTag design I'm not sure I would straightway say that it is a tag. So what do you think of improving the design to make it look more like a tag with a circle inside instead of a rectangle? See tag v2.

    tokenTag@2x

  6. Dosant commented on Jan 20, 2022

    @Dosant
    ContributorAuthor

    But when I look at this tokenTag design I'm not sure I would straightway say that it is a tag. So what do you think of improving the design to make it look more like a tag with a circle inside instead of a rectangle? See tag v2.

    @miukimiu, I like it! :)

    I'll then start using tokenTag in Kibana in elastic/kibana#93248 while you're making it nicer in EUI 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions