From 0be2bf797178e46ad81f97fba95a09715b83c80a Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 16 Nov 2023 17:22:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0selection=E7=9A=84=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/constants.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 235e385..2b62b94 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/constants.js b/src/constants.js index 29a2aee..49e7b79 100644 --- a/src/constants.js +++ b/src/constants.js @@ -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) {