Skip to content

Commit eb076a7

Browse files
committed
added $$props.class to Snackbar.svelte
1 parent 9605cf3 commit eb076a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
### Added
1212
- actions, isAboveMobile, isAboveTablet, setNotice to index.js so they can be imported directly
13-
- $$props.class to Fab, TextArea, Select, Checkbox, Datatable, Dialog.Simple, Dialog.Alert, Tooltip and List so they can accept global classes
13+
- $$props.class to Fab, TextArea, Select, Checkbox, Datatable, Dialog.Simple, Dialog.Alert, Tooltip, Snackbar and List so they can accept global classes
1414
- barColorProvided to Progress.Linear to allow bypass of bar-color class when no color is provided
1515
- bgColorIsVariant to TopAppBar to allow bypass of bg-color-variant if no color is provided
1616
- README: Theming, Drawer example, CSS utility classes and Storybook url.

components/mdc/Snackbar/Snackbar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function open(msg) {
4646
</script>
4747

4848
<div class="mdc-snackbar" bind:this={element}>
49-
<div class="mdc-snackbar__surface mdc-theme--secondary-variant">
49+
<div class="mdc-snackbar__surface mdc-theme--secondary-variant {$$props.class}">
5050
<div class="mdc-snackbar__label" role="status" aria-live="polite">
5151
</div>
5252
{#if action}

0 commit comments

Comments
 (0)