mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
add $$restProps.style
This commit is contained in:
parent
d5251ff47c
commit
69b208add2
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
import { Grid, Row, Column } from "../Grid";
|
import { Grid, Row, Column } from "../Grid";
|
||||||
import { shouldRenderHamburgerMenu } from "./navStore";
|
import { shouldRenderHamburgerMenu } from "./navStore";
|
||||||
|
|
||||||
|
const { style, ...rest } = $$restProps;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
@ -13,8 +15,8 @@
|
||||||
<main
|
<main
|
||||||
id="{id}"
|
id="{id}"
|
||||||
class:bx--content="{true}"
|
class:bx--content="{true}"
|
||||||
style="height: 100%; margin: 0px; width: 100%;"
|
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
|
style="{`height: 100%; margin: 0px; width: 100%; ${$$restProps.style}`}"
|
||||||
>
|
>
|
||||||
<Grid narrow noGutter>
|
<Grid narrow noGutter>
|
||||||
<Row>
|
<Row>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue