Updating text align style to be optional.
This commit is contained in:
parent
14cd1744ff
commit
1896b1fe52
|
@ -4,11 +4,11 @@
|
||||||
export let size = "M"
|
export let size = "M"
|
||||||
export let serif = false
|
export let serif = false
|
||||||
export let noPadding = false
|
export let noPadding = false
|
||||||
export let textAlign = "left"
|
export let textAlign
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<p
|
<p
|
||||||
style="text-align:{textAlign};"
|
style="{textAlign ? `text-align:${textAlign}` : ``}"
|
||||||
class:noPadding
|
class:noPadding
|
||||||
class="spectrum-Body spectrum-Body--size{size}"
|
class="spectrum-Body spectrum-Body--size{size}"
|
||||||
class:spectrum-Body--serif={serif}
|
class:spectrum-Body--serif={serif}
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
|
|
||||||
// Sizes
|
// Sizes
|
||||||
export let size = "M"
|
export let size = "M"
|
||||||
export let textAlign = "left"
|
export let textAlign
|
||||||
export let noPadding = false
|
export let noPadding = false
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1
|
<h1
|
||||||
style="text-align:{textAlign};"
|
style="{textAlign ? `text-align:${textAlign}` : ``}"
|
||||||
class:noPadding
|
class:noPadding
|
||||||
class="spectrum-Heading spectrum-Heading--size{size}"
|
class="spectrum-Heading spectrum-Heading--size{size}"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue