Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit acdd60a

Browse files
committed
url encode # for checkbox colors (#277)
1 parent 406ee94 commit acdd60a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/ui/mixins/ThemeHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export default class ThemeHandler extends Vue {
9393
sheet.deleteRule(0)
9494
}
9595
sheet.insertRule(
96-
`.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27${docStyle
97-
.getPropertyValue('--textPrimary')
96+
`.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%278%27 height=%278%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23${docStyle
97+
.getPropertyValue('--textPrimary').replace('#', '')
9898
.trim()
9999
.toLowerCase()}%27 d=%27M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z%27/%3e%3c/svg%3e") !important; }`,
100100
)

0 commit comments

Comments
 (0)