
Motivation
We built an "error" pattern in order to setup the error pages more quickly.
See also: (French) Page d'erreurs - Système de Design de l'État
It's a beta feature, but we could still add it to the build for now.
Issue fork ui_suite_dsfr-3383175
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 #3
spryah CreditAttribution: spryah commentedComment #4
pdureau CreditAttribution: pdureau as a volunteer commentedHi, thanks for your proposal.
I am not very comfortable about a component without any specific markup, being built with styles utilities classes and the layout system: https://git.drupalcode.org/project/ui_suite_dsfr/-/blob/e412e48eaecda579...
I need to think about that.
Comment #5
pdureau CreditAttribution: pdureau as a volunteer commentedComment #6
pdureau CreditAttribution: pdureau as a volunteer commentedLet's implement theme as examples for now.
Comment #7
stephj CreditAttribution: stephj commentedThe error pages are no more presented as beta features but are now included as models. See https://www.systeme-de-design.gouv.fr/composants-et-modeles/modeles/page... for further evolutions.
Comment #8
spryah CreditAttribution: spryah commentedHi @pdureau!
I'm sorry I came back after so long.
For this issue I only updated my MR to add a "pictogram" settings.
This pattern has been very useful inside our projects up to now and I have trouble understanding how an example could be more useful to our developers?
Comment #9
pdureau CreditAttribution: pdureau as a volunteer commentedhi Sorya,
When I see the wrapper element, I am still not convinced about this to be a genuine component:
Also, there are some issues:
attributes
object is not used<use class="fr-artwork-motif" href="/libraries/dsfr/dist/artwork/background/ovoid.svg#artwork-motif"></use>
. Maybe the upcoming https://www.drupal.org/project/ui_icons may help hereComment #10
pdureau CreditAttribution: pdureau as a volunteer commentedSo, from https://www.systeme-de-design.gouv.fr/composants-et-modeles/modeles/page... :
page--404.html.twig
. See: https://www.drupal.org/node/2960810hook_theme_suggestions_page_alter
: https://www.drupal.org/forum/support/module-development-and-code-questio...hook_theme_suggestions_page_alter
: https://www.drupal.org/forum/support/module-development-and-code-questio...Anyway, moved to 1.1.x because all those pages rely heavily on pictograms (
<svg class="fr-artwork">
), which will be implemented with UI Icons.Comment #11
pdureau CreditAttribution: pdureau as a volunteer commented