feat(progress-indicator): add spaceEqual prop and functionality

This commit is contained in:
josefaidt 2020-09-18 15:35:45 -05:00
commit d57531fc01
2 changed files with 8 additions and 0 deletions

View file

@ -11,6 +11,12 @@
*/
export let vertical = false;
/**
* Set to `true` to specify whether the progress steps should be split equally in size in the div
* @type {boolean} [spaceEqually=false]
*/
export let spaceEqually = false;
import { createEventDispatcher, setContext } from "svelte";
import { writable, derived } from "svelte/store";
@ -43,6 +49,7 @@
<ul
class:bx--progress="{true}"
class:bx--progress--vertical="{vertical}"
class:bx--progress--space-equal="{spaceEqually && !vertical}"
{...$$restProps}
on:click
on:mouseover