Skip to content

v1.2.0

Choose a tag to compare

@bacon-delight bacon-delight released this 03 Dec 14:24
· 7 commits to main since this release
d158d29

Matches vue-ecosphere 1.2.0: the stylesheet is copied from it, and the components carry its
additions and fixes.

Added

  • EcoButton, EcoLink, EcoTabs items and EcoProgressSteps steps take to. Pass your router's
    link component as as (react-router's Link), as on EcoNavItem: the link renders through it.
    Without as, a string to becomes the href. A disabled or loading button still renders a
    <button>. The router decides the current page: pass aria-current="page" to a button, and the
    current route's key as EcoTabs' value (routed tabs have no first-tab fallback).
  • EcoProgressSteps (horizontal): reachable marks an upcoming step people may skip ahead to; with
    href or to it links too, keeping its number.
  • EcoDialog: closable (default true). false drops 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 (default true); EcoToaster sets it to false.

Fixed

  • EcoAppShell: the work area is a <main> landmark.
  • EcoToaster: the always-present .toasts list is the aria-live="polite" region, so toasts are
    read out reliably; the toasts inside it are no longer role="status" regions of their own.
  • Dialogs stack above an open drawer, and .page carries the right gutter (stylesheet).
  • EcoMeter is a role="meter" with its value on the bar or ring, named by the ring's label or an
    aria-label / aria-labelledby you pass.
  • EcoNumberField: a typed figure outside min / max is pulled back to the nearest bound on blur;
    text that is not a number reports null and sets aria-invalid; a fractional step uses
    inputMode="decimal", and an inputMode you pass wins.
  • EcoTextField, EcoEmailField, EcoNumberField, EcoTextarea and EcoSwitch merge an
    aria-describedby you pass after their own hint or error id.
  • EcoSearchField: attributes other than className and style (id, role, aria-*, handlers)
    go to the <input>, so it can be a combobox's input; an onKeyDown that calls
    preventDefault() keeps Enter and Escape for itself. Its props type now extends the input's
    attributes.
  • EcoPhoneField without codes shows 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 unless dot is false.