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