Problem/Motivation
Documentation URL are currently in description properties:
accordion:
label: Accordion
description: Used to condense space by hiding content and revealing it as needed. https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/accordeon
category: AccordionProposed resolution
Move them to own "link" property:
accordion:
label: Accordion
description: Used to condense space by hiding content and revealing it as needed.
links:
- https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/accordeon
category: AccordionDon't forget to run prettier on modified YAML
And add related markup in patterns-meta-information.html.twig
You can tale inspiration from https://git.drupalcode.org/project/ui_suite_bootstrap/-/blob/5.0.x/templ... :
{# External documentation links. #}
{% if pattern.render_links %}
<p>
{% for renderLink in pattern.render_links %}
{{ renderLink|add_class('btn btn-sm btn-primary') }}
{% endfor %}
</p>
{% endif %}
with DSFR classes instead of Bootstrap classes
Issue fork ui_suite_dsfr-3459505
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pdureau commentedComment #3
musa.thomasComment #5
musa.thomasComment #6
pdureau commentedThanks you.
I will do a few changes however.
No need to put this for every components because it is not specific to each link:
It belongs to the template.
Comment #8
pdureau commentedComment #9
pdureau commented