Skip to content

Commit 8621ee7

Browse files
authored
Merge pull request #698 from openstad/fix/closing-textarea
feat: Add cancel button to reply form
2 parents 83cde43 + 19745d7 commit 8621ee7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/comments/src/index.css

+8
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,12 @@
9999
overflow: hidden;
100100
padding: 0;
101101
position: absolute;
102+
}
103+
104+
.comment-item .reaction-container .cancel-reply {
105+
width: 100%;
106+
max-width: 100%;
107+
background: var(--utrecht-button-secondary-action-background-color, #ff0021);
108+
color: var(--utrecht-button-secondary-action-color, white);
109+
border: 1px solid var(--utrecht-button-secondary-action-border-color, #ff0021);
102110
}

packages/comments/src/parts/comment.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ function Comment({
266266
toggleReplyForm();
267267
}}
268268
/>
269+
<Spacer size={.5} />
270+
<Button className={'cancel-reply'} onClick={toggleReplyForm}> Annuleren </Button>
269271
<Spacer size={1} />
270272
</div>
271273
</div>

0 commit comments

Comments
 (0)