Skip to content

Commit cb00a2e

Browse files
committed
barColorProvided allows bypass of bar-color
1 parent 54787bf commit cb00a2e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
### Added
1212
- actions, isAboveMobile, isAboveTablet, setNotice to index.js so they can be imported directly
1313
- $$props.class to Fab, TextArea, Select, Checkbox and List so they can accept global classes
14+
- barColorProvided to Progress.Linear to allow bypass of bar-color class when no color is provided
1415
- README: Theming, Drawer example and Storybook url.
1516
- Storybook for showcasing components at https://silinternational.github.io/ui-components/
1617

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ List (twoLine, avatar) [
6969
]
7070

7171
Progress [
72-
Progress.Circular, Progress.Linear (indeterminate, value)
72+
Progress.Circular, Progress.Linear (indeterminate, value, barColorProvided)
7373
]
7474

7575
Select (options, width, disabled, selectedID)

components/mdc/Progress/Linear.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { onMount } from 'svelte'
55
66
export let indeterminate = false
77
export let value = 0
8+
export let barColorProvided = true
89
910
let element = {}
1011
let mdcProgress
@@ -24,7 +25,7 @@ onMount(() => {
2425
<div class="mdc-linear-progress__buffer-bar"></div>
2526
<div class="mdc-linear-progress__buffer-dots"></div>
2627
</div>
27-
<div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar bar-color">
28+
<div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar" class:bar-color={barColorProvided}>
2829
<span class="mdc-linear-progress__bar-inner"></span>
2930
</div>
3031
<div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">

0 commit comments

Comments
 (0)