Skip to content

Commit 50ee63c

Browse files
committed
fix: 修复windows 下弹窗按钮颜色显示不一致的问题
1 parent 72f31c5 commit 50ee63c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/cookiebox.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ export class MyCookieSandbox {
208208
fontSize: "12px",
209209
padding: "4px",
210210
cursor: "pointer",
211-
backgroundColor: "#c518ae",
211+
backgroundColor: "#4CAF50",
212+
background: "#4CAF50",
212213
color: "black",
213214
border: "none",
214215
borderRadius: "5px",
@@ -220,12 +221,14 @@ export class MyCookieSandbox {
220221
button.addEventListener("mouseover", function () {
221222
if (!button.disabled) {
222223
button.style.backgroundColor = "#45a049";
224+
button.style.background = "#45a049";
223225
}
224226
});
225227

226228
button.addEventListener("mouseout", function () {
227229
if (!button.disabled) {
228230
button.style.backgroundColor = "#4CAF50";
231+
button.style.background = "#4CAF50";
229232
}
230233
});
231234

0 commit comments

Comments
 (0)