Skip to content

Not sure how to use hoo-progress #133

Description

@gabbsmo

Describe the bug
I looked at the example in Pattern Lab and could not figure out how to make the progress bar dynamic. The animation seem to be hardcoded.

Expected behavior
What I ended up doing was replacing the animation with a transition on the width style property, like in Fluent React.

/*
 * Transistion from Fluent React
 * MIT license: https://github.com/microsoft/fluentui/blob/master/packages/react/LICENSE
 */
.hoo-progress-indicator {
    animation-name: none;
    transition: width 0.15s linear 0s;
}
<div class="hoo-progress-indicator" style="width: {{ progress }}%;"></div>

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions