Skip to content

Commit 7969e02

Browse files
Poll-related cleanup
1 parent 345b71c commit 7969e02

3 files changed

Lines changed: 19 additions & 23 deletions

File tree

src/components/Poll/styling/Poll.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
flex-direction: column;
3030
align-items: center;
3131
gap: var(--spacing-xs);
32+
}
3233

33-
.str-chat__button.str-chat__poll-action {
34-
width: 100%;
35-
border: 1px solid var(--chat-border-on-chat);
36-
padding: var(--button-padding-y-sm) var(--button-padding-x-with-label-sm);
37-
font: var(--str-chat__font-body-emphasis);
34+
.str-chat__button.str-chat__poll-action {
35+
width: 100%;
36+
border: 1px solid var(--chat-border-on-chat);
37+
padding: var(--button-padding-y-sm) var(--button-padding-x-with-label-sm);
38+
font: var(--str-chat__font-caption-emphasis);
3839

39-
&.str-chat__poll-action--additional {
40-
border: none;
41-
}
40+
&.str-chat__poll-action--additional {
41+
border: none;
4242
}
4343
}
4444
}

src/components/Poll/styling/PollOptionFullList.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
padding-bottom: var(--spacing-xl);
1111

1212
.str-chat__poll-option-list--full {
13-
gap: var(--spacing-xxs);
13+
gap: var(--spacing-xs);
1414
scrollbar-width: none;
15-
padding: var(--spacing-sm) var(--spacing-xxs);
15+
padding: var(--spacing-xs);
1616
border-radius: var(--radius-lg);
1717
background-color: var(--background-core-surface-card);
1818

1919
.str-chat__poll-option {
2020
padding: var(--spacing-xs);
21-
border-radius: var(--radius-lg);
21+
border-radius: var(--radius-md);
2222
}
2323
.str-chat__poll-option--votable {
2424
&:hover {

src/components/Poll/styling/PollOptionList.scss

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
height: var(--str-chat__poll-checkmark-size);
2929
width: var(--str-chat__poll-checkmark-size);
3030
border-radius: var(--radius-max);
31-
border: 1px solid var(--chat-border-on-chat);
31+
border: 1px solid var(--chat-border-on-chat, var(--chat-border-on-chat-incoming));
3232
}
3333

3434
.str-chat__checkmark--checked {
@@ -43,7 +43,7 @@
4343
.str-chat__poll-option-data {
4444
flex: 1;
4545
display: flex;
46-
align-items: start;
46+
align-items: baseline;
4747
gap: var(--spacing-xs);
4848
grid-column: 2 / 3;
4949
grid-row: 1 / 2;
@@ -53,6 +53,8 @@
5353
p {
5454
margin: 0;
5555
flex: 1;
56+
word-break: break-word;
57+
hyphens: auto;
5658
}
5759

5860
.str-chat__poll-option-votes {
@@ -79,18 +81,12 @@
7981
width: 100%;
8082
background: linear-gradient(
8183
to right,
82-
var(--chat-poll-progress-fill) var(--str-chat__amount-bar-fulfillment),
83-
var(--chat-poll-progress-track) var(--str-chat__amount-bar-fulfillment)
84+
var(--chat-poll-progress-fill, var(--chat-poll-progress-fill-incoming))
85+
var(--str-chat__amount-bar-fulfillment),
86+
var(--chat-poll-progress-track, var(--chat-poll-progress-track-incoming))
87+
var(--str-chat__amount-bar-fulfillment)
8488
);
8589
border-radius: var(--size-4);
8690
}
8791
}
8892
}
89-
90-
.str-chat__message--me {
91-
.str-chat__poll-option-list {
92-
.str-chat__checkmark {
93-
border: 1px solid var(--chat-border-on-chat-outgoing);
94-
}
95-
}
96-
}

0 commit comments

Comments
 (0)