增加selection的样式定义

master 1.10.12
yutent 2023-11-16 17:22:25 +08:00
parent ff51e09e39
commit 0be2bf7971
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "wkit",
"version": "1.10.11",
"version": "1.10.12",
"type": "module",
"description": "A library for building fast, lightweight web components.",
"main": "dist/index.js",

View File

@ -46,7 +46,7 @@ export const __mounted__ = Symbol('mounted')
export const __pending__ = Symbol('pending')
export const __children__ = Symbol('children')
export const RESET_CSS_STYLE = `* {box-sizing: border-box;margin: 0;padding: 0;}::before,::after {box-sizing: border-box;}`
export const RESET_CSS_STYLE = `* {box-sizing: border-box;margin: 0;padding: 0;}::before,::after {box-sizing: border-box;}::selection {background: var(--selection-background, var(--color-plain-a));color: var(--selection-color, inherit);}`
function getDefaultValue(type) {
switch (type) {