skilld-labs / kaizen

Basic theme
8 stars 0 forks source link

Added smart component #162

Open iberdinsky-skilld opened 2 years ago

iberdinsky-skilld commented 2 years ago

To test

as result both environments Drupal and storybook will share same modifiers/settings and libraries

artreaktor-niks commented 2 years ago

Tested. On BackOffice settings for the field - not visible. Because the wrapper for the layout is absent. "js-layout-builder-block layout-builder-block"

According to these classes - options inside become visible on mouse hover. https://prnt.sc/P5nxlw_hmujT

To fix it need to add <div {{ region_attributes.content }}> wrapper or specific CSS to show it from back-end side on hover without this wrapper.

<div {{ attributes }}>
  {% if content.content %}
    <div {{ region_attributes.content }}>
      {{- content.content -}}
    </div>
  {% endif %}
</div>
artreaktor-niks commented 2 years ago

Also. After "drush cex" command - didn't found config exported. For Drupal I used https://github.com/skilld-labs/skilld-docker-container

On Root Drupal installation config are exporting and Dependency of Kaizen module - don't present in config. Only theme dependency.