Skip to content

Commit f4a83b6

Browse files
committed
TextContent: Add @boxed argument
1 parent ab08166 commit f4a83b6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/components/text-content.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div local-class="wrapper" ...attributes>
1+
<div local-class="wrapper {{if @boxed "boxed"}}" ...attributes>
22
{{yield}}
33
</div>

app/components/text-content.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
.boxed {
2+
padding: var(--space-m);
3+
background-color: white;
4+
margin-bottom: var(--space-s);
5+
border-radius: 5px;
6+
}
7+
18
.wrapper {
29
line-height: 1.5;
310
overflow-wrap: break-word;

0 commit comments

Comments
 (0)