Skip to content

Commit 08a6e3e

Browse files
authored
fix: update headline schema to not output a default text alignment unless explicitly set (#595)
1 parent 5790f15 commit 08a6e3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/components/bolt-headline/headline.schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ properties:
2525
align:
2626
type: string
2727
description: Text alignment.
28-
default: left
28+
default: null
2929
enum:
3030
- left
3131
- center

packages/components/bolt-headline/src/_typography.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
baseClass,
3333
quoted ? baseClass ~ "--" ~ "quoted" : "",
3434
weight in weights ? baseClass ~ "--" ~ weight : "",
35-
align and align != "" ? baseClass ~ "--" ~ align : "",
35+
align and align != null ? baseClass ~ "--" ~ align : "",
3636
style in styles and type == "text" ? baseClass ~ "--" ~ style : "",
3737
size in sizes and type != "eyebrow" ? baseClass ~ "--" ~ size : "",
3838
transform in transformProps and transform != "" ? baseClass ~ "--" ~ transform : "",

0 commit comments

Comments
 (0)