- Issue created by @Kristen Pol
- Assigned to Akhil Babu
- 🇮🇳India Akhil Babu Chengannur
The code in XB enforces the 'attribute' prop to be of type
Drupal\Core\Template\Attribute
web/modules/contrib/experience_builder/src/PropShape.php// TRICKY: `attributes` is a special case — it is kind of a reserved // prop. // @see \Drupal\sdc\Twig\TwigExtension::mergeAdditionalRenderContext() // @see https://www.drupal.org/project/drupal/issues/3352063#comment-15277820 if ($prop_name === 'attributes') { assert($prop_schema['type'][0] === Attribute::class); continue; }
So, If 'attribute' prop is added with any other type (like type: string for most of the SDDS components), XB UI will break.
- Assigned to jacobadeutsch
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Since it's after midnight in India, having Jacob pick this one up now.
- Assigned to anand.toshniwal93
- 🇮🇳India anand.toshniwal93
Assigning this to me as per conversation with @jacobadeutsch
- Issue was unassigned.
- Status changed to Needs review
4 months ago 10:56pm 23 August 2024 - 🇮🇳India anand.toshniwal93
Updated script for above
https://github.com/qed42/twig-sdc-yaml-generator/blob/main/twig_sdc_yaml...
- Status changed to Needs work
4 months ago 11:11pm 23 August 2024 - 🇮🇳India anand.toshniwal93
Moving this to needs work as I have just updated the script and not other parts of issue.
- First commit to issue fork.
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
@jacobadeutsch Can you update your local script to not put the required fields section in? That was breaking XB when I was testing. I would like it out until it's done properly per:
📌 Add required props for all SDDS baseline SDC YAML files Fixed
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
And the 80 char fixes got reverted in this:
https://git.drupalcode.org/project/demo_design_system/-/merge_requests/2...
so you'll need to manually changes those again... or maybe we just plan on fixing those at the end at this point. I can reopen the mega linter ticket and we can plan on a pass when the code is in better shape.
- Assigned to Kristen Pol
- Status changed to Needs review
4 months ago 4:16am 24 August 2024 - Status changed to RTBC
4 months ago 6:56pm 26 August 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
This is looking good. There are some regressions for 80 char (manual) fixes. I'll reopen that issue so we can do it later on if we want to revisit these.
components/01-atoms/fieldset/fieldset.component.yml description: > Description display: before, after, invisible. Default is before. Optional. description: > 'Type of the message: error, warning, info, success. Default is error.' components/01-atoms/label/label.component.yml description: > 'Label size: extra-large, large, regular, small, extra-small.' components/01-atoms/select/select.component.yml description: > 'Option type: option group (optgroup) or option (option).' components/02-molecules/social-links/social-links.component.yml description: > Direction: horizontal, vertical. Defaults to horizontal. components/02-molecules/tooltip/tooltip.component.yml description: > Symbol to use in the button. Defaults to 'userinterface_informationmark'. starshot_demo/components/01-atoms/starshot-heading/starshot-heading.component.yml description: > Font style of heading: drupal-2, drupal-3, drupal-4, drupal-5, drupal-6, drupal-7, drupal-8.
- Issue was unassigned.
- Status changed to Fixed
4 months ago 6:58pm 26 August 2024 - Assigned to Kristen Pol
- Status changed to Active
4 months ago 6:53pm 27 August 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Reopening this based on new information:
https://www.drupal.org/project/experience_builder/issues/3468944#comment... 📌 Update XB's `image` SDC to comply with best practices, and document those best practices Needs review
we may need to just remove these but I'm double checking.
- Status changed to Needs work
4 months ago 7:12pm 27 August 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Pierre confirmed we don't need this so we can remove it. Note that we have some big MRs pending so let's remove these after those are merged today.
- Assigned to jacobadeutsch
- Issue was unassigned.
- Status changed to Fixed
4 months ago 6:48pm 28 August 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
These were removed as part of:
📌 Add examples for all props in all SDDS baseline SDC YAML files Fixed
Note that the XB team isn't so sure about removing this so they have postponed their issue:
📌 Remove attributes in XB components Needs review
Hopefully we won't need to add attributes back in! o_O
Marking fixed for now though.
Automatically closed - issue fixed for 2 weeks with no activity.