Skip to content

Commit

Permalink
more text attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Nov 17, 2023
1 parent 22fe9df commit e7a453f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/templates/attributes/text.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,34 @@
value: value['font-weight']|default('400')
}) }}
</div>
<div>
{{ selectField({
label: 'Style',
name: name ~ '[font-style]',
options: [
{label: 'Default', value: ''},
{label: 'Normal', value: 'normal'},
{label: 'Italic', value: 'italic'},
],
value: value['font-style']|default('')
}) }}
</div>
<div>
{{ textField({
label: 'Size',
name: name ~ '[font-size]',
type: 'text',
value: value['font-size']|default('')
}) }}
</div>
<div>
{{ textField({
label: 'Line Height',
name: name ~ '[line-height]',
type: 'text',
value: value['line-height']|default('')
}) }}
</div>
<div>
{{ selectField({
label: 'Decoration',
Expand Down

0 comments on commit e7a453f

Please sign in to comment.