@farming-labs/theme 0.0.53 → 0.0.54

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.
@@ -105,6 +105,7 @@ function DocsFeedback({ pathname, entry, locale, question = "How is this guide?"
105
105
  const [status, setStatus] = useState("idle");
106
106
  const normalizedPathname = useMemo(() => normalizePathname(pathname), [pathname]);
107
107
  const showForm = selected !== null;
108
+ const submitButtonLabel = status === "submitted" ? "Submitted" : submitLabel;
108
109
  useEffect(() => {
109
110
  setSelected(null);
110
111
  setComment("");
@@ -184,7 +185,7 @@ function DocsFeedback({ pathname, entry, locale, question = "How is this guide?"
184
185
  "aria-hidden": "true"
185
186
  }),
186
187
  status === "submitted" && /* @__PURE__ */ jsx(CheckIcon, {}),
187
- /* @__PURE__ */ jsx("span", { children: status === "submitted" ? "Submitted" : submitLabel })
188
+ /* @__PURE__ */ jsx("span", { children: submitButtonLabel })
188
189
  ]
189
190
  }), status === "submitted" && /* @__PURE__ */ jsx("p", {
190
191
  className: "fd-feedback-status",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -115,7 +115,7 @@
115
115
  "tsdown": "^0.20.3",
116
116
  "typescript": "^5.9.3",
117
117
  "vitest": "^3.2.4",
118
- "@farming-labs/docs": "0.0.53"
118
+ "@farming-labs/docs": "0.0.54"
119
119
  },
120
120
  "peerDependencies": {
121
121
  "@farming-labs/docs": ">=0.0.1",
package/styles/base.css CHANGED
@@ -447,7 +447,8 @@ figure.shiki:has(figcaption) figcaption {
447
447
  min-height: 4.75rem;
448
448
  resize: vertical;
449
449
  padding: 0.875rem 1rem;
450
- border: 1px solid var(--color-fd-border, hsl(0 0% 80% / 50%));
450
+ border: 1px solid
451
+ color-mix(in srgb, var(--color-fd-border, hsl(0 0% 80% / 50%)) 78%, var(--color-fd-foreground) 22%);
451
452
  background: var(--color-fd-card, transparent);
452
453
  color: var(--color-fd-foreground);
453
454
  font: inherit;
@@ -472,11 +473,13 @@ figure.shiki:has(figcaption) figcaption {
472
473
  display: flex;
473
474
  align-items: center;
474
475
  gap: 0.75rem;
475
- flex-wrap: wrap;
476
+ flex-wrap: nowrap;
477
+ min-height: 2rem;
476
478
  }
477
479
 
478
480
  .fd-feedback-submit {
479
481
  min-width: 7rem;
482
+ padding-inline: 0.875rem;
480
483
  justify-content: center;
481
484
  }
482
485
 
@@ -495,15 +498,18 @@ figure.shiki:has(figcaption) figcaption {
495
498
  }
496
499
 
497
500
  .fd-feedback-status {
498
- margin: 0;
501
+ margin: 0 !important;
499
502
  font-size: 0.8125rem;
503
+ line-height: 1.35;
500
504
  color: var(--color-fd-muted-foreground, hsl(0 0% 45%));
501
505
  }
502
506
 
503
507
  .fd-feedback-status[data-status="success"] {
504
508
  display: inline-flex;
509
+ align-self: center;
505
510
  align-items: center;
506
511
  gap: 0.4rem;
512
+ min-height: 2rem;
507
513
  }
508
514
 
509
515
  .fd-feedback-status[data-status="error"] {
@@ -546,6 +552,10 @@ figure.shiki:has(figcaption) figcaption {
546
552
  align-items: flex-start;
547
553
  }
548
554
 
555
+ .fd-feedback-submit-row {
556
+ flex-wrap: wrap;
557
+ }
558
+
549
559
  .fd-last-updated-footer {
550
560
  margin-left: 0;
551
561
  width: 100%;