Skip to content

Yeti 7.0.0-alpha.3

Pre-release
Pre-release

Choose a tag to compare

@joeworkman joeworkman released this 01 Dec 02:04
· 1 commit to develop since this release
dc565a2

Yeti 7.0.0-alpha.3 is the menu release. Navigation now goes three levels deep and works on a phone. It also adds brand colors, high contrast support and nine new parts, and the full stylesheet is still smaller than Bootstrap's.

npm install @foundation/yeti@next
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@foundation/yeti@7.0.0-alpha.3/dist/yeti.min.css">

Two changes to check when you update

  • Greys are true greys. In alpha.2, surfaces, text and borders carried a faint tint of the primary hue. They are now neutral, so they sit under any brand color. To keep the alpha.2 look, set --yeti-chroma-neutral: 0.02 in your theme.
  • The demo frame is no longer in yeti.css and yeti.js. Only documentation pages use it. A page that does now loads css/components/demo/demo.css and js/demo.js after the bundles.

No class, attribute, token, module or event was renamed or removed.

Menus

  • Nested dropdowns. A dropdown holds dropdowns to any depth. A parent can be a real link beside a small toggle, flyouts flip at the screen edge, and data-grouped lists pages under headings. A long panel scrolls.
  • The nav on a phone. The open panel shows submenu pages in place. The optional nav.js folds them into groups.
  • A bottom bar. data-panel="bar" turns the nav into a fixed row of icons and labels at the bottom of a phone screen.
  • A More menu. With nav.js, links that do not fit move into a More menu, and move back when there is room.
  • subnav, a vertical nav for sidebars, and tabnav, links styled as tabs.
  • A navigation guide on which part to use when, with a footer of link columns and a mega menu.

Color

  • Brand colors. --yeti-brand-primary and its siblings take any color, and Yeti builds the ladder from it with text contrast kept. A new line step keeps links and outlines readable when the brand color is light. data-palette lets a region use its own brand colors.
  • Contrast holds when a theme raises the chroma. Up to a --yeti-chroma of 0.3, white text on a fill stays at 4.5:1 for every hue.
  • High contrast. In Windows high contrast, selected, current, checked and pressed items take the system highlight, and floating panels get an outline. When a visitor asks for more contrast, borders get stronger.

New parts

  • dialog drawer. data-panel="drawer" slides a dialog in from any edge.
  • popover. A panel anchored to the button that opens it, with no script.
  • Button actions. data-action="copy" and data-action="share", with the optional button.js.
  • steps. A process with a current step, in a row or a column. data-orientation fixes the direction.
  • stats. A row of numbers with their labels.
  • avatar. A person's picture or initials.
  • notices. Messages in a corner of the screen, with the optional notify.js to raise them from a button or a script and close them after a time.
  • Chips. A badge that is a link, a button or a label can be selected and can hold a remove button.
  • truncate. Cuts text to one line, or to data-lines lines, with an ellipsis.

Size

yeti.min.css is 26.6 kB gzipped and yeti.min.js 5.9 kB, every module included. Every script is optional.