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 }

Comments

kunalkursija created an issue. See original summary.

cyb_tachyon’s picture

Can 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.

cyb_tachyon’s picture

Status: Active » Needs review

This has been included in the Patternkit Alpha 2 release!

cyb_tachyon’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.