Skip to content

Commit 8566b20

Browse files
committed
change default icon in checkbox component
1 parent 09ba36e commit 8566b20

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ root = true
44
end_of_line = lf
55
insert_final_newline = false
66

7-
[*.{js,html}]
7+
[*.{js,html,scss,json}]
88
indent_style = space
99
indent_size = 4

frontend/express/public/stylesheets/styles/overrides/_element-override.scss

+29
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,32 @@
414414
}
415415
}
416416
}
417+
418+
.el-checkbox__input.is-checked .el-checkbox__inner::after {
419+
-webkit-box-sizing: content-box;
420+
box-sizing: content-box;
421+
content: '' !important;
422+
border: none !important;
423+
height: 8px !important;
424+
left: 50% !important;
425+
position: absolute;
426+
top: 50% !important;
427+
-webkit-transform: translate(-50%, -50%) !important;
428+
transform: translate(-50%, -50%) !important;
429+
width: 11.2px !important;
430+
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxNCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy43MDcxIDAuMjkyODkzQzE0LjA5NzYgMC42ODM0MTcgMTQuMDk3NiAxLjMxNjU4IDEzLjcwNzEgMS43MDcxMUw1LjcwNzExIDkuNzA3MTFDNS4zMTY1OCAxMC4wOTc2IDQuNjgzNDIgMTAuMDk3NiA0LjI5Mjg5IDkuNzA3MTFMMC4yOTI4OTMgNS43MDcxMUMtMC4wOTc2MzExIDUuMzE2NTggLTAuMDk3NjMxMSA0LjY4MzQyIDAuMjkyODkzIDQuMjkyODlDMC42ODM0MTcgMy45MDIzNyAxLjMxNjU4IDMuOTAyMzcgMS43MDcxMSA0LjI5Mjg5TDUgNy41ODU3OUwxMi4yOTI5IDAuMjkyODkzQzEyLjY4MzQgLTAuMDk3NjMxMSAxMy4zMTY2IC0wLjA5NzYzMTEgMTMuNzA3MSAwLjI5Mjg5M1oiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==') !important;
431+
background-repeat: no-repeat !important;
432+
background-size: contain !important;
433+
-webkit-transition: none !important;
434+
transition: none !important;
435+
-webkit-transform-origin: center !important;
436+
transform-origin: center !important;
437+
}
438+
439+
.el-checkbox__inner::after {
440+
display: none;
441+
}
442+
443+
.el-checkbox.is-checked .el-checkbox__inner::after {
444+
display: block;
445+
}

0 commit comments

Comments
 (0)