Skip to content

Commit f562c55

Browse files
committed
revert: restore YourAction to use text prop with join instead of list
1 parent 7b66ff3 commit f562c55

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
.your-action {
2-
margin: var(--db-spacing-fixed-xl) 0 var(--db-spacing-fixed-2xl);
1+
.your-action p {
2+
white-space: pre-line;
33
}
44

5-
.your-action ul {
6-
margin: 0;
7-
padding-inline-start: var(--db-spacing-fixed-md);
5+
.your-action {
6+
margin: var(--db-spacing-fixed-xl) 0 var(--db-spacing-fixed-2xl);
87
}
98

10-
.your-action li + li {
11-
margin-block-start: var(--db-spacing-fixed-xs);
12-
}
139

template/components/YourAction/YourAction.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ const YourAction = ({ actions }: { actions: string[] }) => {
88
semantic="warning"
99
headline="Your Action"
1010
variant="standalone"
11-
>
12-
<ul>
13-
{actions.map((action) => (
14-
<li key={action}>{action}</li>
15-
))}
16-
</ul>
17-
</DBNotification>
11+
text={actions.join('\n\n')}
12+
/>
1813
);
1914
};
2015

0 commit comments

Comments
 (0)