Skip to content

Feat/dmj gaps 4 - #57

Merged
wiifree merged 6 commits into
mainfrom
feat/dmj-gaps-4
Nov 23, 2026
Merged

wiifree merged 6 commits into
mainfrom
feat/dmj-gaps-4

Conversation

@wiifree

@wiifree wiifree commented Nov 23, 2026

Copy link
Copy Markdown
Member

Three gaps found in the DMJ app.

Textarea autoResize mounted hidden (vue, react – patch): in an inactive tab or a closed accordion it measured scrollHeight 0 and stayed one line high. A measurement of 0 now sets no height, and a ResizeObserver measures again when the textarea gets a width or its width changes. Story Textarea in Tabs, browser test.

Tabs lazyMount removed the initial panel (vue – patch): Ark's Vue presence never marks the panel that is open on mount as "was present", so lazyMount alone removed it when its tab was left. The Vue TabsContent now mounts the panels itself with Ark's rules; behaviour test for lazyMount / + unmountOnExit / neither in Vue and React (red for Vue without the fix; React was right).

Banner solid and position="sticky" (recipes, css, vue, react, native – minor): opaque fill in the variant's colour with its on-colour; sticky stays in the flow at the top edge (z-40, opaque also without solid). Native gets solid. Parity cases, stories Solid / Sticky, AI docs.

Tested locally (memory-limited, targeted): parity tests for Banner, Textarea and Tabs, MCP docs check, ESLint on the changed files. Full suites run in CI.

…ible

Mounted hidden (an inactive tab, a closed accordion, a popover before it
opens) the textarea measured scrollHeight 0 and stayed one line high,
also after it became visible.

- A measurement of 0 sets no height: the rows stay until it is visible
- A ResizeObserver measures again when the textarea gets a width and
  whenever the width changes (the text wraps differently)
- Story "Textarea in Tabs" (Vue, React) and a browser test: the textarea
  in a tab that was hidden when it mounted is as high as its four lines
- React Native measures with onContentSizeChange and has no such case

Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
With lazyMount alone the panel selected on mount was removed when its
tab was left - only unmountOnExit should do that. Ark's Vue presence
sets "was ever present" in a watcher without immediate, so it never
knows the panel that is present from the start (React computes it on
render and is right). Form fields in such a panel were not mounted on
submit, so their errors stayed hidden.

- Vue TabsContent mounts the panels itself with Ark's rules: never
  selected + lazyMount -> not rendered; selected once and left -> kept
  (hidden), removed only with unmountOnExit
- Behaviour test for lazyMount, lazyMount + unmountOnExit and neither,
  Vue and React; red for Vue lazyMount without the fix

Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
The banner's tints are translucent: the content shows through while the
page scrolls, and on a tinted page background it is hard to see.
position="top" is fixed and covers the top bar instead of taking space.

- solid: opaque fill in the colour of the variant with its on-colour for
  text and icon (neutral: bg-fg text-bg); the close button takes the text
  colour for its hover and focus ring
- position="sticky": in the flow, sticky top-0 below dialogs and drawers
  (z-40); opaque also without solid (the tint mixed onto the page colour)
- React Native: solid (no sticky)
- Parity cases, stories Solid and Sticky (Native: Solid), AI docs

Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
The fallback for a TabsContent outside Tabs was {}, so lazyMount and
unmountOnExit did not exist on its type (vue-tsc in CI).

Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
…ticky story

The story's scroll container has no focusable content, so keyboard users
could not scroll it (axe: scrollable-region-focusable).

Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
…ea in Tabs stories

Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
@wiifree
wiifree merged commit 6df831c into main Nov 23, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant