Repository navigation
v1.2.0
Matches vue-ecosphere 1.2.0: the stylesheet is copied from it, and the components carry its
additions and fixes.
Added
EcoButton,EcoLink,EcoTabsitems andEcoProgressStepssteps taketo. Pass your router's
link component asas(react-router'sLink), as onEcoNavItem: the link renders through it.
Withoutas, a stringtobecomes thehref. A disabled or loading button still renders a
<button>. The router decides the current page: passaria-current="page"to a button, and the
current route's key asEcoTabs'value(routed tabs have no first-tab fallback).EcoProgressSteps(horizontal):reachablemarks an upcoming step people may skip ahead to; with
hrefortoit links too, keeping its number.EcoDialog:closable(defaulttrue).falsedrops the × and makes Escape and the scrim do
nothing, for a dialog that must be answered.EcoAppShell:contentTag("main"by default;"div"when the children render their own
<main>).EcoToast:live(defaulttrue);EcoToastersets it tofalse.
Fixed
EcoAppShell: the work area is a<main>landmark.EcoToaster: the always-present.toastslist is thearia-live="polite"region, so toasts are
read out reliably; the toasts inside it are no longerrole="status"regions of their own.- Dialogs stack above an open drawer, and
.pagecarries the right gutter (stylesheet). EcoMeteris arole="meter"with its value on the bar or ring, named by the ring'slabelor an
aria-label/aria-labelledbyyou pass.EcoNumberField: a typed figure outsidemin/maxis pulled back to the nearest bound on blur;
text that is not a number reportsnulland setsaria-invalid; a fractionalstepuses
inputMode="decimal", and aninputModeyou pass wins.EcoTextField,EcoEmailField,EcoNumberField,EcoTextareaandEcoSwitchmerge an
aria-describedbyyou pass after their own hint or error id.EcoSearchField: attributes other thanclassNameandstyle(id,role,aria-*, handlers)
go to the<input>, so it can be a combobox's input; anonKeyDownthat calls
preventDefault()keeps Enter and Escape for itself. Its props type now extends the input's
attributes.EcoPhoneFieldwithoutcodesshows the dial code as text (phonefield__cc--fixed) that
describes the number, instead of a button that opened nothing.EcoTimeline(trail): a stage status shows its badge dot unlessdotisfalse.