It looks like the patternkit is not displaying the theme's registered library in the layout builder restrictions UI.
Steps to reproduce: I created a theme and placed below THEME.libraries.yml but it looks like the layout builder restrictions UI is not picking up the patterns. See attached screenshot for reference
web:
version: VERSION
css:
base:
../../../patterns/web/css/web.css: {}
./css/chrome.css: {}
./css/footer.css: {}
./css/language-switcher.css: {}
./css/login-form.css: {}
./css/menu-local.css: {}
theme:
https://static.example.com/libs/example/example-font/2/webfonts/example-font.css: { type: external }
https://static.example.com/libs/example/example-iconfont/4/files/example-iconfont.css: { type: external }
https://static.example.com/libs/example/example-iconfont/4/files/example-web-iconfont.css: { type: external }
js:
../../../patterns/web/js/modernizr-custom.min.js: { minified: true }
../../../patterns/web/js/web.js: {}
../../../patterns/web/js/web.vendor.js: {}
patterns:
../../../patterns/web/library: { plugin: twig }
dependencies:
- core/drupalSettings
webMin:
version: VERSION
css:
base:
../../../patterns/web/css/web.min.css: { minified: true }
../../../patterns/web/css/web.webcomponents.min.css: { minified: true }
../../../patterns/web/css/web.webcomponents.noscript.css: { minified: true }
js:
../../../patterns/web/js/modernizr-custom.min.js: { minified: true }
../../../patterns/web/js/web.vendor.min.js: { minified: true }
../../../patterns/web/js/web.webcomponents.min.js: { minified: true }
patterns:
../../../patterns/web/library: { plugins: twig }
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2020-08-25 at 11.52.04 AM.png | 73.81 KB | kunalkursija |
Comments
Comment #2
cyb_tachyon commentedCan confirm this bug, and it seems like layout_builder_restrictions is categorizing by block derivative and and not by block derivative type. Will check and file against layout_builder_restrictions if that ends up being the case.
Comment #3
cyb_tachyon commentedThis has been included in the Patternkit Alpha 2 release!
Comment #4
cyb_tachyon commented