Footer component: Simplify fields & settings naming

Created on 31 January 2024, about 1 year ago
Updated 17 February 2024, about 1 year ago

Problem/Motivation

Every slot (field) and prop (setting) of footer component is prefixed by "footer":

    footer_agency_contact_center:
      type: "textfield"
      label: "Footer agency logo"
      description: "Path to footer agency logo (from this theme's folder)."
      preview: "Agency Contact Center"
    footer_agency_email:
      type: "textfield"
      label: "Footer agency email"
      preview: "info@agency.gov"
      preview: "(800) CALL-GOVT"
...
    footer_primary:
      type: "render"
      label: "Footer Primary"
      description: "Region to render"
      preview: false
    footer_secondary:
      type: "render"
      label: "Footer Secondary"
      description: "Region to render"
      preview: false

Proposed resolution

Remove useless prefix from component definition, from component templates and from where the component is called.

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡«πŸ‡·France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024