Skip to content

Commit

Permalink
Fix buttons & styles
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed Feb 19, 2025
1 parent fd7639a commit 874e631
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/notifications/opera-serp.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="force-light-mode">
<html lang="en" data-theme="light">
<head>
<title>More ad blocking available</title>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/notifications/pause-assistant.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="force-light-mode">
<html lang="en" data-theme="light">
<head>
<title>Pause Assistant</title>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/notifications/pause-feedback.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="force-light-mode">
<html lang="en" data-theme="light">
<head>
<title>Pause Assistant Feedback</title>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/notifications/pause-resume.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="force-light-mode">
<html lang="en" data-theme="light">
<head>
<title>Pause Assistant</title>
<meta charset="utf-8" />
Expand Down
5 changes: 5 additions & 0 deletions src/ui/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ export default {
--button-background: var(--background-brand-solid);
}
:host([type="secondary"]) {
--button-color: var(--color-primary);
--button-background: var(--background-tertiary);
}
:host([type="success"]) {
--button-background: var(--background-success-solid);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ html {
}

@media (prefers-color-scheme: dark) {
html {
html:not([data-theme='light']) {
--background-brand-primary: var(--color-gray-900);
--background-brand-secondary: var(--color-brand-700);
--background-brand-solid: var(--color-brand-500);
Expand Down

0 comments on commit 874e631

Please sign in to comment.