Skip to content

Commit 91cd8d9

Browse files
committed
added $$props.class to Datatable, Alert and Simple
1 parent 91da196 commit 91cd8d9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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 and List so they can accept global classes
13+
- $$props.class to Fab, TextArea, Select, Checkbox, Datatable, Dialog.Simple, Dialog.Alert 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/Datatable/Datatable.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ onMount(() => {
2222
})
2323
</script>
2424

25-
<div class="mdc-data-table w-100" bind:this={element}>
25+
<div class="mdc-data-table w-100 {$$props.class}" bind:this={element}>
2626
<div class="mdc-data-table__table-container">
2727
<table class="mdc-data-table__table" aria-label={label}>
2828
<slot />

components/mdc/Dialog/Alert.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ onMount(() => {
4343
})
4444
</script>
4545

46-
<div class="mdc-dialog" bind:this={element}>
46+
<div class="mdc-dialog {$$props.class}" bind:this={element}>
4747
<div class="mdc-dialog__container">
4848
<div class="mdc-dialog__surface"
4949
role="alertdialog"

components/mdc/Dialog/Simple.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const toAction = json => JSON.stringify(json)
3535
const fromAction = s => JSON.parse(s)
3636
</script>
3737

38-
<div class="mdc-dialog" bind:this={element}>
38+
<div class="mdc-dialog {$$props.class}" bind:this={element}>
3939
<div class="mdc-dialog__container">
4040
<div class="mdc-dialog__surface" role="alertdialog" aria-modal="true" aria-labelledby="dialog-title" aria-describedby="dialog-content">
4141
<!--(notes from docs) Title cannot contain leading whitespace due to mdc-typography-baseline-top() -->

0 commit comments

Comments
 (0)