Closed bahmutov closed 3 years ago
Recording shows that initially the checkboxes work, but then stop after using the time-traveling debugger feature
https://user-images.githubusercontent.com/2212006/134074501-25b2eced-c5e1-4866-9591-4cfb5eba4239.mp4
Somehow this preload link sets the icon, but how does it get the blue background, I do not get
Found how the background is set for the checkbox
Uses CSS
/* CHECKED CARD */
.card .cb-container .cb-input:checked + .check {
background: url("../assets/images/icon-check.svg"),
linear-gradient(45deg, var(--clr-green), var(--clr-pink));
background-repeat: no-repeat;
background-position: center;
}
Before DOM snapshot restore (notice the background property)
After DOM snapshot restore (notice separate props and they are invalid)
The HEAD style is missing values for this ".check" class
Seems, DOM snapshots do not understand background
with URL + gradient
Does not work:
background: url("../assets/images/icon-check.svg"),
linear-gradient(45deg, var(--clr-green), var(--clr-pink));
Works
background: url('../assets/images/icon-check.svg');
background-color: var(--clr-green);
:tada: This issue has been resolved in version 1.5.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Real app in the browser:
the checkboxes are filled
In Cypress the checkboxes do not show up