Repository navigation
v0.15.0
Minor Changes
- #222
d3f0fd0Thanks @silveltman! - -astro(^7.0.0) andtailwindcss(^4.1.0) are now peer dependencies instead of dependencies. Sites that installfulldev-uikeep their own Astro and Tailwind, so the package no longer adds a second, older Astro to the site's dependency tree. Sites need Astro 7.- The package now depends only on what its shipped files import. Tools for the docs site (
@astrojs/mdx,@astrojs/sitemap,@tailwindcss/vite,astro-favicons,astro-live-code,astro-robots-txt,posthog-jsandtypescript) are no longer installed with it, and the unused@fontsource-variable/geistand@fontsource-variable/geist-monoare removed. src/libin the package now contains onlyutils.ts, the file the registry installs. The docs site's own helpers (integration.ts,pages.tsand the analytics files) are no longer published.- The
layoutitem now installs@lexingtonthemes/seo@^0.4.0, which supports Astro 7. Its code is the same as 0.2.0. The package also requires@lucide/astro1.49.0 or later, because versions before 1.30 do not support Astro 7. banner-1andarticle-2add explicit spaces between their inline parts. Astro 7 removes whitespace that spans a line break, which madebanner-1read "titleDescription" on small screens andarticle-2read "Name· date".
- The package now depends only on what its shipped files import. Tools for the docs site (
Patch Changes
-
#223
080b948Thanks @silveltman! - Fix invalid HTML and accessibility problems that html-validate andastro checkreport in sites:- Brand icons in
footer-1,footer-2,footer-3,doc-1andblocks-1render onefillattribute instead of two. The blocks import the SVG files fromsimple-iconsinstead of thesimple-icons-astrocomponents, which renderfilltwice, so they now depend onsimple-icons. footer-2andfooter-3take anavigationLabelprop (defaultFooter navigation) that names their link navigation, so it no longer clashes with the header navigation.NavigationMenudefaults itsaria-labeltoMain, as in shadcn/ui.Paginationno longer sets the redundantrole="navigation", and anaria-labelyou pass replaces the default instead of rendering the attribute twice.BreadcrumbPageno longer setsrole="link"andaria-disabledon its text.aria-current="page"still marks the current page.Carouselrenders asectioninstead of adivwithrole="region". With anaria-labeloraria-labelledbyit is a named region; without one it getsrole="group", soaria-roledescription="carousel"stays valid.ToggleGrouprendersrole="group"andResizableHandlerendersrole="separator"in the HTML, so anaria-labelon them is valid before scripts run. Data Slot only added these roles at runtime.AvatarandAvatarFallbackrender aspan, as in shadcn/ui, so an avatar can sit inside a button or link.InputandNativeSelectrendermultipleas a bare attribute. Astro renderedmultiple="true", andmultiple={false}still turned it on.- The
sidebar-1breadcrumb menu button has the accessible text "Toggle menu". doc-1wraps its table of contents in adivinstead of an unnamedaside, so it no longer clashes with other complementary landmarks such asBanner.SidebarMenuButtonandSidebarMenuSubButtonhave typed props again. Astro's compiler did not find theirPropstype, so the props were untyped andastro check --minimumFailingSeverity hintreportedPropsas unused.Commandtracks IME composition withcompositionstartandcompositionendinstead of the deprecatedkeyCode, and still ignores the Enter that confirms a composition, including in Safari.- The Switch, Radio Group, Checkbox and Field docs label controls by wrapping them in
Labeland use only inline content inside labels.SwitchandRadioGroupItemrender aspan, whichLabel forcannot point to. reviews-3names its carousel with the block title.
- Brand icons in