- Issue created by @spryah
- Merge request !105Issue #3471802 by spryah: fix attributes and classes in sidemenu pattern markup → (Closed) created by spryah
- Status changed to Needs review
4 months ago 12:30pm 3 September 2024 - Merge request !107Issue #3471802 by spryah: fix attributes and classes in sidemenu pattern markup → (Merged) created by spryah
- Assigned to pdureau
- Issue was unassigned.
- Status changed to Needs work
4 months ago 7:43pm 9 September 2024 - 🇫🇷France pdureau Paris
Hi Sorya,
Thanks for the improvement. Let's ship it with the upcoming 1.0.2 release.
However, I am still not conformable with this change:
-
{{ title }}+
{{ title }}
Because
P
element is not accepting block elements as children, so it is a bit risky for a slot, especially when used with a display builder like layout_builder. Is it mandatory to do?(Careful, i have rebased your remote branch, you may need to recreate your local branch)
- First commit to issue fork.
- 🇫🇷France spryah
Hello Pierre,
Thank you for your feedback. I understand your concern. Should we set thetitle
as a setting/prop then? - 🇫🇷France pdureau Paris
We have 2 solutions:
- title as a setting/prop in a HTML P element
- title as a field/slot in a HTML DIV element
- 🇫🇷France spryah
Okay!
Since we need a semantic element, I kept the title inside a<p>
tag and set it as a setting/prop.
I also changed its type fromtext
totoken
but I'm not sure how I can anticipate this kind of information? - 🇫🇷France pdureau Paris
I also changed its type from text to token but I'm not sure how I can anticipate this kind of information?
Token is fine. It is a bit confusing in UI Patterns 1.x because
token
is a data source not a data type, but a UI Patterns Settings plugin is both a data type and a data source.It will be converted as a
string
in UI Patterns 2.x - 🇫🇷France pdureau Paris
For this issue and the other ones relative to the fields/settings (slots/props) dilemma, we are deciding that:
- We don't switch from slot to prop in the current 1.0.x branch
- We create a distinct issue for 1.1.x branch with the slot to prop switch
- We update the current MR removing the switch from slot to prop
and
the switch from DIV to P