File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
res/css/components/views/polls Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff 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 : 2 px ;
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 : 12 px ;
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 : 12 px 12 px ;
75+ mask-repeat : no-repeat;
76+ mask-position : center;
77+ background-color : var (--cpd-color-icon-on-solid-primary );
78+ width : 12 px ;
79+ height : 12 px ;
80+ }
6981
7082 div {
7183 visibility : hidden;
You can’t perform that action at this time.
0 commit comments