diff --git a/packages/core/src/components/button/button.scss b/packages/core/src/components/button/button.scss index 5f58d6f..a6b3f51 100644 --- a/packages/core/src/components/button/button.scss +++ b/packages/core/src/components/button/button.scss @@ -246,7 +246,7 @@ :host([disabled]) { cursor: not-allowed; - button { + button:disabled { --background: #{get-color("neutral.base", 0.2)}; color: #{get-color("base.content", 0.2)}; diff --git a/packages/core/src/components/button/test/basic/index.html b/packages/core/src/components/button/test/basic/index.html index 9503176..4928bdf 100644 --- a/packages/core/src/components/button/test/basic/index.html +++ b/packages/core/src/components/button/test/basic/index.html @@ -97,7 +97,7 @@

Button - disabled (basic)

success warning error - error + ghost
diff --git a/packages/core/src/components/button/test/theme/dark.html b/packages/core/src/components/button/test/theme/dark.html new file mode 100644 index 0000000..72836e2 --- /dev/null +++ b/packages/core/src/components/button/test/theme/dark.html @@ -0,0 +1,135 @@ + + + + + + Input Basic | Poppy-ui + + + + + + + + +
+
+

Button - basic

+
+ no color + primary + secondary + accent + info + success + warning + error + ghost +
+
+
+

Button - outlined

+
+ no color + primary + secondary + accent + info + success + warning + error +
+
+
+

Button - active

+
+ no color + primary + secondary + accent + info + success + warning + error + ghost +
+
+
+

Button - outlined active

+
+ no color + primary + secondary + accent + info + success + warning + error +
+
+
+

Button - disabled (basic)

+
+ no color + primary + secondary + accent + info + success + warning + error + ghost +
+
+
+

Button - outlined disabled

+
+ no color + primary + secondary + accent + info + success + warning + error + error +
+
+
+ + \ No newline at end of file diff --git a/packages/core/stencil.config.ts b/packages/core/stencil.config.ts index 10c5a5b..03742b6 100644 --- a/packages/core/stencil.config.ts +++ b/packages/core/stencil.config.ts @@ -80,11 +80,6 @@ export const config: Config = { apiSpecGenerator({ file: 'api.txt', }), - { - type: 'www', - serviceWorker: null, // disable service workers - copy: [{ src: '**/*.html' }, { src: '**/*.css' }] - }, { type: 'dist', esmLoaderPath: '../loader', diff --git a/packages/core/stencil.test.config.ts b/packages/core/stencil.test.config.ts index 60609f9..6a4d868 100644 --- a/packages/core/stencil.test.config.ts +++ b/packages/core/stencil.test.config.ts @@ -1,4 +1,4 @@ -import { Config } from '@stencil/core'; +import type { Config } from '@stencil/core'; import { config as base } from './stencil.config'; export const config: Config = { @@ -7,4 +7,13 @@ export const config: Config = { port: 2222, openBrowser: false, }, + outputTargets: [ + // biome-ignore lint/style/noNonNullAssertion: + ...base.outputTargets!, + { + type: 'www', + serviceWorker: null, // disable service workers + copy: [{ src: '**/*.html' }, { src: '**/*.css' }] + }, + ] };