- Issue created by @Christian.wiedemann
- Merge request !375Respect replaces in layout library and layout → (Open) created by Christian.wiedemann
- 🇩🇪Germany Christian.wiedemann
Can you check this if the behavior is right now. Now the component with "replaces" inside is taken into account for building slots and props in layout builder and library. But still both component appears. Is this right?
- 🇫🇷France pdureau Paris
I think we need to leverage this Core issue ✨ SDC: Add a method to retrieve only components not replaced by others Needs work to:
- show all components in the component library (
ui_patterns_library
) - but only the non-replaced components:
- in the components selector (
ui_patterns
) when#render_slot
s is true - in specific integration when
#render_slot
s is false (so inui_patterns_layouts
)
- in the components selector (
If we don't want to wait for the Core issue to be fixed, let's accelerate it and make a compatible change while waiting.
Don't you think?
- show all components in the component library (
- 🇩🇪Germany Christian.wiedemann
Yes you are right but I think we should also hide the component in the library.
- 🇩🇪Germany Christian.wiedemann
So I hide the components with a "replaces" from component selector / Layout and UIP UI. Inside the library it is a bit more complicated. Right now both components are visible but htis does not make sense from my point of view.
We should also hide the "replaces" component and inside the single view of the component we should switch from "replaces" to "Replaced by". Good?
- 🇫🇷France pdureau Paris
Yes you are right but I think we should also hide the component in the library.
I don't have strong opinion about this. So, let's do as you want or let's ask the team.
We should also hide the "replaces" component and inside the single view of the component we should switch from "replaces" to "Replaced by". Good?
We must hide the replaced component and show only the replacing component, right? So what would be the use of showing "Replaced by" info in replaced components?