Pattern Lab UIKit v1.0.4 Released
This is a patch release for Pattern Lab's UIKit which primarily includes updates from #1053 and #1047 to address the following:
-
Updates the Viewport component to use the Pattern Lab
defaultPattern
config (if it exists) when setting up the iframe URL that initially loads. Fixes #1050 reported by @thethomic -
Updates the Nav component to display the top level
All
link by default unless theishControlsHide['views-all]
config option is enabled 😉. Fixes #1048 reported by @coreylafferty -
Fixes a Pattern query string-related issue where the top most
All
page doesn't always include the name of that page's "pattern" which the iframe emits the patternLoad event, resulting in that page never getting it's full URL replaced with pattern-specific query string when the page loads (ie.?p=NAME
). -
Fixes an issue in UIKit's Prism.js logic to correctly fall back to using
markup
for syntax highlighting when encountering an unsupported templating language. Addresses a recent bug reported by @thethomic on Gitter. -
Ports over a recent UIkit fix from https://github.com/bolt-design-system/bolt which automatically defaults the viewport resizer to 100% the screen width the very first time PL is opened / if any custom viewport sizes haven't previously been set / when server-side rendering. Addresses one of the issues reported by @cbirdsong on Gitter a couple days ago.
Issues Closed:
Special thanks to @thethomic, @coreylafferty, @cbirdsong, and @bmuenzenmeyer for their help on this!