Skip to content

Commit 9242717

Browse files
committed
Fix check style in poll option
1 parent 1491fdf commit 9242717

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

res/css/components/views/polls/_PollOption.pcss

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,25 @@ Please see LICENSE files in the repository root for full details.
5959
/* override checked radio button styling to show checkmark instead */
6060
.mx_StyledRadioButton_checked {
6161
input[type="radio"]:checked + div {
62+
position: relative;
6263
border-width: 2px;
6364
border-color: var(--cpd-color-icon-primary);
6465
background-color: var(--cpd-color-icon-primary);
65-
background-image: url("@vector-im/compound-design-tokens/icons/check.svg");
66-
background-size: 12px;
67-
background-repeat: no-repeat;
68-
background-position: center;
66+
67+
&::before {
68+
content: "";
69+
position: absolute;
70+
top: 50%;
71+
left: 50%;
72+
transform: translate(-50%, -50%);
73+
mask-image: url("@vector-im/compound-design-tokens/icons/check.svg");
74+
mask-size: 12px 12px;
75+
mask-repeat: no-repeat;
76+
mask-position: center;
77+
background-color: var(--cpd-color-icon-on-solid-primary);
78+
width: 12px;
79+
height: 12px;
80+
}
6981

7082
div {
7183
visibility: hidden;

0 commit comments

Comments
 (0)