Skip to content

[EuiProgress] Add option to render as a meter #2983

@myasonik

Description

@myasonik

Summary

The semantics of <progress /> and <meter /> are a little different though visually they present really similar info.

In Discover (and probably other areas), Kibana uses EuiProgress to show a ratio of a thing, not to actually show a "progressing" state. In these cases, <meter /> would be the appropriate element to use.

What to do

  1. Add an option to render EuiProgress with a <meter /> element instead. This might require some CSS tweaks as well to make sure both components render the same in all browsers.

  2. Add a note to the docs about the difference and when to use which. (<progress /> should be used when it is a long running task that will complete. <meter /> should be used when you are displaying a static ratio.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions