Skip to content

Accordion linting (max cells) fixes #616

@roperev

Description

@roperev

Swapna and Matt and I worked through this one as a call, here's a bit of our output as reference

Image
"models": [
    {
      "id": "accordion",
      "fields": [
        {
          "component": "multiselect",
          "name": "classes",
          "label": "Style",
          "options": [
            {
              "name": "Styles",
              "children": [
            {
              "name": "dark scheme",
              "value": "dark-scheme"
            },
            {
              "name": "light scheme",
              "value": "light-scheme"
            }
          ]
          }
        ]
      },
        {
          "component": "boolean",
          "valueType": "boolean",
          "name": "no-schema",
          "label": "No LD+JSON schema",
          "description": "Disables schema.org microdata attributes on accordion items"
        },
        {
          "component": "text",
          "name": "cta_location",
          "label": "CTA location (number of items before the CTA)",
          "valueType": "number",
          "value": ""
        },
        {
          "component": "text",
          "name": "cta_link",
          "label": "CTA URL",
          "value": "",
          "description": "Use # for more/less toggle functionality"
        },
        {
          "component": "text",
          "name": "cta_text_label",
          "label": "CTA Text (e.g. Show More)",
          "value": ""
        },
        {
          "component": "text",
          "name": "open-item",
          "label": "Number of the item to open by default (0 = none)",
          "valueType": "number",
          "value": ""
        }
      ]
    },

CRX changes (example)

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions