@mfp-design-system/button 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button.js +4 -4
- package/package.json +3 -3
- package/src/button.ts +4 -4
package/dist/button.js
CHANGED
|
@@ -57,7 +57,7 @@ let MfpButton = class MfpButton extends LitElement {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
button:focus-visible {
|
|
60
|
-
outline: 2px solid var(--color-
|
|
60
|
+
outline: 2px solid var(--color-brand-primary, #2563eb);
|
|
61
61
|
outline-offset: 2px;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -87,12 +87,12 @@ let MfpButton = class MfpButton extends LitElement {
|
|
|
87
87
|
/* Variants — fall back to primary when no [variant] attribute is set */
|
|
88
88
|
:host(:not([variant])) button,
|
|
89
89
|
:host([variant='primary']) button {
|
|
90
|
-
background: var(--color-
|
|
91
|
-
color: var(--color-
|
|
90
|
+
background: var(--color-brand-primary, #2563eb);
|
|
91
|
+
color: var(--color-brand-primary-fg, #ffffff);
|
|
92
92
|
}
|
|
93
93
|
:host(:not([variant])) button:hover:not(:disabled),
|
|
94
94
|
:host([variant='primary']) button:hover:not(:disabled) {
|
|
95
|
-
background: var(--color-
|
|
95
|
+
background: var(--color-brand-primary-hover, #1d4ed8);
|
|
96
96
|
box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
|
|
97
97
|
}
|
|
98
98
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mfp-design-system/button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Button web component for the mfp-design-system, built with Lit.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"lit": "^3.2.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@mfp-design-system/tokens": "^0.
|
|
28
|
+
"@mfp-design-system/tokens": "^0.3.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
31
|
"@mfp-design-system/tokens": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"rimraf": "^6.0.1",
|
|
37
37
|
"typescript": "^5.6.3",
|
|
38
|
-
"@mfp-design-system/tokens": "0.
|
|
38
|
+
"@mfp-design-system/tokens": "0.3.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
package/src/button.ts
CHANGED
|
@@ -47,7 +47,7 @@ export class MfpButton extends LitElement {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
button:focus-visible {
|
|
50
|
-
outline: 2px solid var(--color-
|
|
50
|
+
outline: 2px solid var(--color-brand-primary, #2563eb);
|
|
51
51
|
outline-offset: 2px;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -77,12 +77,12 @@ export class MfpButton extends LitElement {
|
|
|
77
77
|
/* Variants — fall back to primary when no [variant] attribute is set */
|
|
78
78
|
:host(:not([variant])) button,
|
|
79
79
|
:host([variant='primary']) button {
|
|
80
|
-
background: var(--color-
|
|
81
|
-
color: var(--color-
|
|
80
|
+
background: var(--color-brand-primary, #2563eb);
|
|
81
|
+
color: var(--color-brand-primary-fg, #ffffff);
|
|
82
82
|
}
|
|
83
83
|
:host(:not([variant])) button:hover:not(:disabled),
|
|
84
84
|
:host([variant='primary']) button:hover:not(:disabled) {
|
|
85
|
-
background: var(--color-
|
|
85
|
+
background: var(--color-brand-primary-hover, #1d4ed8);
|
|
86
86
|
box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
|
|
87
87
|
}
|
|
88
88
|
|