From b369aff40843bf20bcd5fead6b97574fbc109f4a Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sat, 29 Feb 2020 19:33:01 +0000 Subject: [PATCH] Change modal button colors, closes #80 --- src/main.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index cf3668f9..0bb9eb50 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,11 +29,19 @@ class HacsFrontend extends LitElement { color: var(--primary-text-color) !important; } .swal-button { - background-color: var(--primary-color) !important; - color: var(--primary-text-color) !important; + background-color: transparent !important; + color: var(--mdc-theme-primary, --primary-text-color) !important; } .swal-text:first-child { margin: 16px 0px 0px 8px; + } + .swal-button:focus { + outline: none; + box-shadow: none; + } + .swal-button:hover { + outline: none; + box-shadow: 0 0 0 1px #fff, 0 0 0 3px; }`; element.appendChild(style); }