Repository navigation
Yeti 7.0.0-alpha.3
Pre-release
Pre-release
·
1 commit
to develop
since this release
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.02in your theme. - The demo frame is no longer in
yeti.cssandyeti.js. Only documentation pages use it. A page that does now loadscss/components/demo/demo.cssandjs/demo.jsafter 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-groupedlists pages under headings. A long panel scrolls. - The nav on a phone. The open panel shows submenu pages in place. The optional
nav.jsfolds 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, andtabnav, 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-primaryand 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-palettelets a region use its own brand colors. - Contrast holds when a theme raises the chroma. Up to a
--yeti-chromaof 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
dialogdrawer.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"anddata-action="share", with the optionalbutton.js. steps. A process with a current step, in a row or a column.data-orientationfixes 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 optionalnotify.jsto 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 todata-lineslines, 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.