Make workflows compatible with the dark theme
This CL also contains a minor fix for the workflows menu.
Fixed: twpowertools:146
Change-Id: I754e2695b3ee0f952b8f1c2f05af0533a715684c
diff --git a/src/contentScripts/communityConsole/workflows/components/TwptConfirmDialog.js b/src/contentScripts/communityConsole/workflows/components/TwptConfirmDialog.js
index 8b778e6..38d3420 100644
--- a/src/contentScripts/communityConsole/workflows/components/TwptConfirmDialog.js
+++ b/src/contentScripts/communityConsole/workflows/components/TwptConfirmDialog.js
@@ -5,22 +5,27 @@
import {css, html, LitElement} from 'lit';
import {createRef, ref} from 'lit/directives/ref.js';
+import {SHARED_MD3_STYLES} from '../../../../common/styles/md3.js';
+
export default class TwptConfirmDialog extends LitElement {
static properties = {
open: {type: Boolean},
workflow: {type: Object},
};
- static styles = css`
- :host {
- --mdc-dialog-content-ink-color: var(--mdc-theme-on-surface, #000);
- --mdc-dialog-z-index: 200;
- }
+ static styles = [
+ SHARED_MD3_STYLES,
+ css`
+ :host {
+ --mdc-dialog-content-ink-color: var(--mdc-theme-on-surface, #000);
+ --mdc-dialog-z-index: 200;
+ }
- .workflow {
- font-weight: 500;
- }
- `;
+ .workflow {
+ font-weight: 500;
+ }
+ `,
+ ];
constructor() {
super();