I've been testing cl_server with storybook and sdc module, attempting to develop a story for
📌
Create new SDC component for Olivero (header-search)
Needs work
. It seems that the content
arg does not get rendered in storybook, but it does when I rename it to mycontent
. I suspect this is a collision with the slot with the same name.
* Install SDC
* Set up cl_server with storybook
* Apply patch from
📌
Create new SDC component for Olivero (header-search)
Needs work
* Add the following to header-search-wide.stories.yml
title: Core/Olivero/Header Search Wide
stories:
- name: 1. Default
args:
label: "Does this work"
content: "Nope!"
The word "Nope!" does not appear in the DOM. Changing the prop name to mycontent
and all other references fixes this.
¯\_(ツ)_/¯
Fixed
2.0
Code