@phillipsharring/graspr-framework 0.2.7 → 0.2.8
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/package.json +1 -1
- package/src/helpers/handlebars-helpers.js +2 -2
- package/styles/base.css +16 -0
package/package.json
CHANGED
|
@@ -6,10 +6,10 @@ export function registerHandlebarsHelpers(Handlebars) {
|
|
|
6
6
|
// ─── Partials ───
|
|
7
7
|
|
|
8
8
|
Handlebars.registerPartial('formButtons', `<div class="flex justify-end gap-3 pt-2">
|
|
9
|
-
<button type="button" class="border rounded px-3 py-2
|
|
9
|
+
<button type="button" class="graspr-btn-cancel border rounded px-3 py-2" data-modal-close>
|
|
10
10
|
Cancel
|
|
11
11
|
</button>
|
|
12
|
-
<button type="submit" class="rounded px-3 py-2
|
|
12
|
+
<button type="submit" class="graspr-btn-primary rounded px-3 py-2">
|
|
13
13
|
{{label}}
|
|
14
14
|
</button>
|
|
15
15
|
</div>`);
|
package/styles/base.css
CHANGED
|
@@ -57,6 +57,22 @@
|
|
|
57
57
|
/* Override inline FOUC prevention — body becomes visible once this stylesheet loads */
|
|
58
58
|
body { opacity: 1; }
|
|
59
59
|
|
|
60
|
+
/* ── Buttons ── */
|
|
61
|
+
.graspr-btn-primary {
|
|
62
|
+
background: var(--graspr-primary);
|
|
63
|
+
color: var(--graspr-primary-text);
|
|
64
|
+
}
|
|
65
|
+
.graspr-btn-primary:hover {
|
|
66
|
+
background: var(--graspr-primary-hover);
|
|
67
|
+
}
|
|
68
|
+
.graspr-btn-cancel {
|
|
69
|
+
border-color: var(--graspr-border);
|
|
70
|
+
color: var(--graspr-text);
|
|
71
|
+
}
|
|
72
|
+
.graspr-btn-cancel:hover {
|
|
73
|
+
background: var(--graspr-surface);
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
/* Form error styles */
|
|
61
77
|
.field-error {
|
|
62
78
|
@apply border-red-600;
|