@mdbase-dev/ui 0.1.0-beta.205 → 0.1.0-beta.211

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.
@@ -76,6 +76,7 @@
76
76
  position: absolute;
77
77
  width: 1px;
78
78
  height: 1px;
79
+ margin: -1px;
79
80
  overflow: hidden;
80
81
  clip: rect(0 0 0 0);
81
82
  white-space: nowrap;
package/css/controls.css CHANGED
@@ -17,10 +17,13 @@
17
17
  :root { --control-height: 40px; }
18
18
  }
19
19
 
20
+ /* The negative margin keeps the box inside its static position: left in normal
21
+ flow at the end of a full-height shell, it made the document 1px taller. */
20
22
  .mdbase-visually-hidden {
21
23
  position: absolute;
22
24
  width: 1px;
23
25
  height: 1px;
26
+ margin: -1px;
24
27
  overflow: hidden;
25
28
  clip: rect(0 0 0 0);
26
29
  white-space: nowrap;
package/css/feedback.css CHANGED
@@ -1,5 +1,4 @@
1
1
  .mdbase-feedback-app { display: contents; }
2
- .mdbase-feedback-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
3
2
  .mdbase-feedback-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-text-soft); font: var(--font-size-caption)/1.4 var(--sans); cursor: pointer; }
4
3
  .mdbase-feedback-trigger:hover { background: var(--color-selected); color: var(--color-text); }
5
4
  .mdbase-feedback-bug { width: 22px; height: 22px; flex-shrink: 0; }
@@ -815,7 +815,7 @@ const Thread = memo(function Thread({
815
815
  id: "M7SqjM",
816
816
  message: "Reopen"
817
817
  })
818
- }), !thread.replies.length && withdraw(root), onOpenRecord && _jsx("button", {
818
+ }), thread.replies.every(r => r.deletedAt) && withdraw(root), onOpenRecord && _jsx("button", {
819
819
  type: "button",
820
820
  className: "mdbase-thread-action is-quiet",
821
821
  onClick: () => onOpenRecord(root.path),
package/dist/Feedback.js CHANGED
@@ -349,7 +349,7 @@ export function FeedbackProvider({
349
349
  ref: content,
350
350
  children: children
351
351
  }), _jsx("span", {
352
- className: "mdbase-feedback-sr-only",
352
+ className: "mdbase-visually-hidden",
353
353
  role: "status",
354
354
  children: wiggle ? _i18n._(
355
355
  /** i18n */
@@ -406,7 +406,7 @@ export function FeedbackProvider({
406
406
  className: "mdbase-feedback-topics",
407
407
  disabled: submitting,
408
408
  children: [_jsx("legend", {
409
- className: "mdbase-feedback-sr-only",
409
+ className: "mdbase-visually-hidden",
410
410
  children: _i18n._(
411
411
  /** i18n */
412
412
  {
@@ -280,7 +280,7 @@ export function FeedbackMarkup({
280
280
  message: "Drag to mark. Keyboard: arrows move; Space starts or finishes. Blackout removes pixels."
281
281
  })
282
282
  }), _jsx("span", {
283
- className: "mdbase-feedback-sr-only",
283
+ className: "mdbase-visually-hidden",
284
284
  role: "status",
285
285
  children: _i18n._(
286
286
  /** i18n */
package/dist/comments.js CHANGED
@@ -308,7 +308,7 @@ export function applySuggestion(body, target, replacement) {
308
308
  if (!at || body.slice(at.from, at.to) !== target.quote.exact) return null;
309
309
  return body.slice(0, at.from) + replacement + body.slice(at.to);
310
310
  }
311
- /** A thread shows unless its first comment was withdrawn and nobody replied. */
311
+ /** A thread shows unless its first comment was withdrawn and no reply still stands. */
312
312
  const shown = t => !t.root.deletedAt || t.replies.some(r => !r.deletedAt);
313
313
  /** The threads whose first comment is on `record`. */
314
314
  export function recordThreads(record, comments, paths) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdbase-dev/ui",
3
- "version": "0.1.0-beta.205",
3
+ "version": "0.1.0-beta.211",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -229,6 +229,6 @@
229
229
  "typecheck": "node scripts/compile-catalogues.mjs && tsc -p tsconfig.json --noEmit"
230
230
  },
231
231
  "mdbaseRelease": {
232
- "commit": "9c5644662e4ef52fbddcca890e5f750426d1e6d3"
232
+ "commit": "90e03df5a7014f153455fc4699ec224cc2781426"
233
233
  }
234
234
  }