Repository navigation
v0.7.0
Minor Changes
-
b2689f3: Add browser-level accessibility tests and make the Accordion heading level configurable
- New Playwright suite (
tests/browser/,npm run test:browser) renders a component harness with
real CSS and runs axe across the light/dark × LTR/RTL matrix, asserts body text meets WCAG AA
against the computed colours, and checks the design tokens resolve. It runs in CI. AccordionItemacceptsheadingLevel(2–6, default 3) so the trigger heading fits the page
outline — the browser run caught that reka's defaulth3tripsheading-orderunder anh1.- Documentation: the accessibility guide now reflects the shipped guards and documents the muted
text contrast limitation (added toDESIGN.md§6).
- New Playwright suite (
-
f25b844: Add controlled sorting to DataTable
DataTablenow accepts asortingprop. Unbound, it sorts itself as before;
bound withv-model:sorting, the component only emitsupdate:sortingand
sorts when the parent writes the prop back — the shape a server-side sort
(manual) needs. Covers controlled and uncontrolled behaviour, plus
combination tests (virtualized expansion, cross-page selection, sorting with
pagination, manual mode with search).
Patch Changes
-
5cc11fa: Ship type declarations that resolve under
node16/nodenextThe build emitted one declaration file per source file, leaving extensionless relative imports
(./lib/date) indist/index.d.ts. Those do not resolve under
moduleResolution: node16/nodenext, so consumers on those settings got broken types (bundler
resolution was unaffected). Declarations are now rolled up into a singleindex.d.ts(and
nuxt.d.ts) per entry, which resolves under every mode.Also adds a
check:packagescript (artifact assertions +publint+attw) and runs it, with the
build, in CI. -
2ec2b7b: Wire the Tailwind preset automatically in Nuxt
The Nuxt module only wired the Tailwind preset and content glob when the
consumer happened to write atailwindcssblock innuxt.config— the
documentedmodules: ['@nuxtjs/tailwindcss', '@myghf/ui/nuxt']setup got
no preset and only a misleading "not detected" warning, because
@nuxtjs/tailwindcssresolves its options at install time.The module now seeds
nuxt.options.tailwindcsswhen the Tailwind module has
not installed yet, so listing@myghf/ui/nuxtbefore@nuxtjs/tailwindcss
wires everything with no extra config. When the Tailwind module has already
installed, the module warns with the exacttailwindcssblock that wires it.
Detection uses Nuxt's installed-modules registry (newhasInstalledTailwindModule
helper, unit-tested) so a merely listed module is not mistaken for an
installed one.