From 4db970363cafba8fc26def4c94dd63869a5b7d32 Mon Sep 17 00:00:00 2001 From: houbly Date: Fri, 8 Jan 2021 13:01:50 +0000 Subject: [PATCH 01/11] add new page + update markdown --- src/www/data.njk.json | 3 ++ src/www/pages/components/radios/index.njk.md | 47 ++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/www/pages/components/radios/index.njk.md diff --git a/src/www/data.njk.json b/src/www/data.njk.json index a71e6e84b..462a39f0b 100644 --- a/src/www/data.njk.json +++ b/src/www/data.njk.json @@ -80,6 +80,9 @@ { "name": "Phase indicator" }, + { + "name": "Radios" + }, { "name": "Table" }, diff --git a/src/www/pages/components/radios/index.njk.md b/src/www/pages/components/radios/index.njk.md new file mode 100644 index 000000000..f99458c2a --- /dev/null +++ b/src/www/pages/components/radios/index.njk.md @@ -0,0 +1,47 @@ +{% extends "www/_layouts/layout-left-pane.njk" %} +{% set pageTitle = "Radios" %} +{% from "www/_partials/component-example/component-example.njk" import compExample %} + +{% block content %} + +{% markdown %} + +{# Radios #} + +## About + +### What does it do? + +- Allows users select one option from multiple options. + +### When to use it? + +- When user can select just one option from multiple options. + +### When not to use it? + +- When user may need to select more than one option. + +{% endmarkdown %} + +{% from "wmnds/components/form-elements/radios/_radios.njk" import wmndsRadios %} +{{ + compExample([wmndsRadios()]) +}} + +{% markdown %} + +### Inline Radios + +{% endmarkdown %} + +{{ + compExample([ + wmndsRadios({ + inline: true + }) + ]) +}} +{# End Radios #} + +{% endblock %} From f9af0e642fd057912d71db84eb3ed519101b2bf2 Mon Sep 17 00:00:00 2001 From: houbly Date: Fri, 8 Jan 2021 13:05:01 +0000 Subject: [PATCH 02/11] added example + props files --- .../form-elements/radios/_example.njk | 47 ++++++++++ .../form-elements/radios/_properties.njk.json | 88 +++++++++++++++++++ 2 files changed, 135 insertions(+) create mode 100644 src/wmnds/components/form-elements/radios/_example.njk create mode 100644 src/wmnds/components/form-elements/radios/_properties.njk.json diff --git a/src/wmnds/components/form-elements/radios/_example.njk b/src/wmnds/components/form-elements/radios/_example.njk new file mode 100644 index 000000000..2edc3e368 --- /dev/null +++ b/src/wmnds/components/form-elements/radios/_example.njk @@ -0,0 +1,47 @@ +{% raw %} +{% from "wmnds/components/form-elements/radios/_radios.njk" import wmndsRadios %} + +{{ + wmndsRadios({ + items: [ + { + id: null, + checked: false, + titleText: null, + contentText: "Option 1", + contentHTML: null, + value: "option1", + disabled: false + }, + { + id: null, + checked: true, + titleText: null, + contentText: "Option 2", + contentHTML: null, + value: "option2", + disabled: true + }, + { + id: null, + checked: false, + titleText: null, + contentText: "Option 3", + contentHTML: null, + value: "option3", + disabled: false + } + ], + question: "How would you...?", + idPrefix: "checkbox", + name: "radios-example", + classes: null, + hint: { + id: null, + classes: null, + contentText: "Select all options that apply", + contentHTML: null + } + }) +}} +{% endraw %} \ No newline at end of file diff --git a/src/wmnds/components/form-elements/radios/_properties.njk.json b/src/wmnds/components/form-elements/radios/_properties.njk.json new file mode 100644 index 000000000..9f1f9b1de --- /dev/null +++ b/src/wmnds/components/form-elements/radios/_properties.njk.json @@ -0,0 +1,88 @@ +{ + "wmndsRadiosProps": [ + { + "name": "items", + "type": "array", + "description": "Required. Array of checkbox items objects. See items below.", + "arrayOptions": [ + { + "name": "contentText", + "type": "string", + "description": "Required. If contentHTML is set, this is not required. Text to use within each checkbox item label. If contentHTML is provided, the contentText argument will be ignored." + }, + { + "name": "contentHTML", + "type": "string", + "description": "Required. If contentText is set, this is not required. HTML to use within each checkbox item label. If contentHTML is provided, the contentText argument will be ignored." + }, + { + "name": "checked", + "type": "boolean", + "description": "If true, checkbox will be checked." + }, + { + "name": "name", + "type": "string", + "description": "Specific name for the checkbox item. If omitted, then component global name string will be applied." + }, + { + "name": "disabled", + "type": "boolean", + "description": "If true, checkbox will be disabled." + }, + { + "name": "titleText", + "type": "string", + "description": "" + } + ] + }, + { + "name": "question", + "type": "string", + "description": "Text for the question component relating to the checkboxes." + }, + { + "name": "hint", + "type": "object", + "description": "Options for the hint component (e.g. text). See hint options below.", + "arrayOptions": [ + { + "name": "id", + "type": "string", + "description": "Optional id attribute to add to the hint span tag." + }, + { + "name": "contentText", + "type": "string", + "description": "Required. If contentHTML is set, this is not required. Text to use within the hint. If contentHTML is provided, the contentText argument will be ignored." + }, + { + "name": "contentHTML", + "type": "string", + "description": "Required. If contentText is set, this is not required. HTML to use within the hint. If contentHTML is provided, the contentText argument will be ignored." + }, + { + "name": "classes", + "type": "string", + "description": "Classes to add to the hint span tag." + } + ] + }, + { + "name": "idPrefix", + "type": "string", + "description": "String to prefix id for each checkbox item if no id is specified on each item. If not passed, fall back to using the name option instead." + }, + { + "name": "name", + "type": "string", + "description": "Required. Name attribute for all checkbox items." + }, + { + "name": "classes", + "type": "string", + "description": "Classes to add to the checkboxes container." + } + ] +} From da85444c9a017671eda453f106422cae6d90b446 Mon Sep 17 00:00:00 2001 From: houbly Date: Fri, 8 Jan 2021 13:57:49 +0000 Subject: [PATCH 03/11] added example props and new params --- .../form-elements/radios/_example.njk | 81 ++++++++++--------- .../form-elements/radios/_properties.njk.json | 30 +++---- .../form-elements/radios/_radios.njk | 60 ++++++++++---- src/www/pages/components/radios/index.njk.md | 21 ++++- 4 files changed, 120 insertions(+), 72 deletions(-) diff --git a/src/wmnds/components/form-elements/radios/_example.njk b/src/wmnds/components/form-elements/radios/_example.njk index 2edc3e368..14e00a56e 100644 --- a/src/wmnds/components/form-elements/radios/_example.njk +++ b/src/wmnds/components/form-elements/radios/_example.njk @@ -2,46 +2,47 @@ {% from "wmnds/components/form-elements/radios/_radios.njk" import wmndsRadios %} {{ - wmndsRadios({ - items: [ - { - id: null, - checked: false, - titleText: null, - contentText: "Option 1", - contentHTML: null, - value: "option1", - disabled: false - }, - { - id: null, - checked: true, - titleText: null, - contentText: "Option 2", - contentHTML: null, - value: "option2", - disabled: true - }, - { - id: null, - checked: false, - titleText: null, - contentText: "Option 3", - contentHTML: null, - value: "option3", - disabled: false - } - ], - question: "How would you...?", - idPrefix: "checkbox", - name: "radios-example", - classes: null, - hint: { - id: null, - classes: null, - contentText: "Select all options that apply", - contentHTML: null + wmndsRadios({ + items: [ + { + id: null, + checked: false, + titleText: null, + contentText: "Option 1", + contentHTML: null, + value: "option1", + disabled: false + }, + { + id: null, + checked: true, + titleText: null, + contentText: "Option 2", + contentHTML: null, + value: "option2", + disabled: false + }, + { + id: null, + checked: false, + titleText: null, + contentText: "Option 3", + contentHTML: null, + value: "option3", + disabled: false } - }) + ], + question: "How would you...?", + idPrefix: "radios", + name: "radios-example", + classes: null, + inline: false, + hint: { + id: null, + classes: null, + contentText: "Select one option", + contentHTML: null + } + }) }} {% endraw %} \ No newline at end of file diff --git a/src/wmnds/components/form-elements/radios/_properties.njk.json b/src/wmnds/components/form-elements/radios/_properties.njk.json index 9f1f9b1de..2ea9992dd 100644 --- a/src/wmnds/components/form-elements/radios/_properties.njk.json +++ b/src/wmnds/components/form-elements/radios/_properties.njk.json @@ -3,44 +3,39 @@ { "name": "items", "type": "array", - "description": "Required. Array of checkbox items objects. See items below.", + "description": "Required. Array of radio items objects. See items below.", "arrayOptions": [ { "name": "contentText", "type": "string", - "description": "Required. If contentHTML is set, this is not required. Text to use within each checkbox item label. If contentHTML is provided, the contentText argument will be ignored." + "description": "Required. If contentHTML is set, this is not required. Text to use within each radio item label. If contentHTML is provided, the contentText argument will be ignored." }, { "name": "contentHTML", "type": "string", - "description": "Required. If contentText is set, this is not required. HTML to use within each checkbox item label. If contentHTML is provided, the contentText argument will be ignored." + "description": "Required. If contentText is set, this is not required. HTML to use within each radio item label. If contentHTML is provided, the contentText argument will be ignored." }, { "name": "checked", "type": "boolean", - "description": "If true, checkbox will be checked." + "description": "If true, radio will be checked." }, { "name": "name", "type": "string", - "description": "Specific name for the checkbox item. If omitted, then component global name string will be applied." + "description": "Specific name for the radio item. If omitted, then component global name string will be applied." }, { "name": "disabled", "type": "boolean", - "description": "If true, checkbox will be disabled." - }, - { - "name": "titleText", - "type": "string", - "description": "" + "description": "If true, radio will be disabled." } ] }, { "name": "question", "type": "string", - "description": "Text for the question component relating to the checkboxes." + "description": "Text for the question component relating to the radios." }, { "name": "hint", @@ -72,17 +67,22 @@ { "name": "idPrefix", "type": "string", - "description": "String to prefix id for each checkbox item if no id is specified on each item. If not passed, fall back to using the name option instead." + "description": "String to prefix id for each radio item if no id is specified on each item. If not passed, fall back to using the name option instead." + }, + { + "name": "inline", + "type": "boolean", + "description": "Determines whether to the display the radios horizontally or vertically." }, { "name": "name", "type": "string", - "description": "Required. Name attribute for all checkbox items." + "description": "Required. Name attribute for all radio items." }, { "name": "classes", "type": "string", - "description": "Classes to add to the checkboxes container." + "description": "Classes to add to the radios container." } ] } diff --git a/src/wmnds/components/form-elements/radios/_radios.njk b/src/wmnds/components/form-elements/radios/_radios.njk index d0c3e07bf..6769e4353 100644 --- a/src/wmnds/components/form-elements/radios/_radios.njk +++ b/src/wmnds/components/form-elements/radios/_radios.njk @@ -1,35 +1,67 @@ {% macro wmndsRadios(params) %} -{# Set vars #} -{% set class = ' wmnds-fe-radios--inline' if params.inline %} -{% set text = params.text if params.text %} {# Imports #} {% from "wmnds/components/form-elements/label/_label.njk" import wmndsLabel %} {% from "wmnds/components/icon/_icon.njk" import wmndsIcon %} {% from "wmnds/components/form-elements/question/_question.njk" import wmndsQuestion %} +{# Set vars #} +{% set class = ' wmnds-fe-radios--inline' if params.inline %} +{% set hasQuestion = false if params.question === "" else true %} +{% set question = params.question if params.question %} +{% set items = params.items if params.items %} +{% set groupClass = " " + params.classes if params.classes %} +{% set name = params.name if params.name else "checkbox-example" %} +{% set hintContentText = params.hint.contentText if params.hint.contentText else "Select all options that apply" %} +{% set hintContentHTML = params.hint.contentHTML if params.hint.contentHTML else null %} +{% set _hintContent = hintContentHTML | safe if hintContentHTML else hintContentText %} {# change content based on what user has input #} +{% set hasDescription = false if _hintContent === "" else true %} +{% set idPrefix = params.idPrefix if params.idPrefix else name %} +{% set hintClass = " " + params.hint.classes if params.hint.classes %} +
- {{ wmndsQuestion({ - text: text - }) | indent(6) | trim }} + {%- if hasQuestion %} + {{ + wmndsQuestion({ + text: question + }) + }} + {% endif -%}
- - Select one option + + {{ _hintContent }} - {%- for i in range(1,4) %} + {% if items %} + {%- for item in items %} + {# Set item vars #} + {% set isChecked = (' checked="checked"' | safe) if item.checked === true else "" %} + {% set inputValue = item.value if item.value else "option" + loop.index | string %} + {% set inputId = item.id if item.id else idPrefix + "_" + inputValue %} + {% set isNotEditable = (' disabled="disabled"' | safe) if item.disabled === true else "" %} + {% set itemContentText = item.contentText if item.contentText else "Select one option" %} + {% set itemContentHTML = item.contentHTML if item.contentHTML else null %} + {% set _itemContent = itemContentHTML | safe if itemContentHTML else itemContentText %} {# change content based on what user has input #} + + {% endfor %} + {% else %} + {% for i in range(1,4) %} {#- Set checked state on first item in loop #} - {%- set isChecked = (' checked="checked"' | safe) if i === 1 %} + {% set isChecked = (' checked="checked"' | safe) if i === 1 %} - {%- endfor %} + {% endfor %} + {% endif %}
diff --git a/src/www/pages/components/radios/index.njk.md b/src/www/pages/components/radios/index.njk.md index f99458c2a..654342c8f 100644 --- a/src/www/pages/components/radios/index.njk.md +++ b/src/www/pages/components/radios/index.njk.md @@ -26,7 +26,15 @@ {% from "wmnds/components/form-elements/radios/_radios.njk" import wmndsRadios %} {{ - compExample([wmndsRadios()]) + compExample([ + wmndsRadios() + ], { + componentPath: "wmnds/components/form-elements/radios/", + njk: true, + njkProps: wmndsRadiosProps, + js: false, + iframe: false + }) }} {% markdown %} @@ -38,9 +46,16 @@ {{ compExample([ wmndsRadios({ - inline: true + inline: true, + name: "inline-example" }) - ]) + ], { + componentPath: "wmnds/components/form-elements/radios/", + njk: true, + njkProps: wmndsRadiosProps, + js: false, + iframe: false + }) }} {# End Radios #} From 95298bc1477adff76c4bdd8a14be049f0d80361f Mon Sep 17 00:00:00 2001 From: houbly Date: Tue, 12 Jan 2021 12:41:50 +0000 Subject: [PATCH 04/11] Added error example --- .../form-elements/radios/_properties.njk.json | 27 +++++++++++++++++++ .../form-elements/radios/_radios.njk | 19 ++++++++++++- src/www/pages/components/radios/index.njk.md | 23 ++++++++++++++++ 3 files changed, 68 insertions(+), 1 deletion(-) diff --git a/src/wmnds/components/form-elements/radios/_properties.njk.json b/src/wmnds/components/form-elements/radios/_properties.njk.json index 2ea9992dd..ebb72acfd 100644 --- a/src/wmnds/components/form-elements/radios/_properties.njk.json +++ b/src/wmnds/components/form-elements/radios/_properties.njk.json @@ -83,6 +83,33 @@ "name": "classes", "type": "string", "description": "Classes to add to the radios container." + }, + { + "name": "error", + "type": "boolean", + "description": "If true, errorMessage will show. Defaults to false." + }, + { + "name": "errorMessage", + "type": "object", + "description": "Options for the error message component. See errorMessage options below.", + "arrayOptions": [ + { + "name": "id", + "type": "string", + "description": "Id attribute to add to the error message span tag." + }, + { + "name": "contentText", + "type": "string", + "description": "Required. Text to use within the error message. If contentHTML is supplied, this is ignored." + }, + { + "name": "contentHTML", + "type": "string", + "description": "Required. HTML to use within the error message" + } + ] } ] } diff --git a/src/wmnds/components/form-elements/radios/_radios.njk b/src/wmnds/components/form-elements/radios/_radios.njk index 6769e4353..d398730e8 100644 --- a/src/wmnds/components/form-elements/radios/_radios.njk +++ b/src/wmnds/components/form-elements/radios/_radios.njk @@ -5,6 +5,7 @@ {% from "wmnds/components/form-elements/label/_label.njk" import wmndsLabel %} {% from "wmnds/components/icon/_icon.njk" import wmndsIcon %} {% from "wmnds/components/form-elements/question/_question.njk" import wmndsQuestion %} +{% from "wmnds/components/form-elements/error-message/_error-message.njk" import wmndsFeErrorMessage %} {# Set vars #} {% set class = ' wmnds-fe-radios--inline' if params.inline %} @@ -19,8 +20,13 @@ {% set hasDescription = false if _hintContent === "" else true %} {% set idPrefix = params.idPrefix if params.idPrefix else name %} {% set hintClass = " " + params.hint.classes if params.hint.classes %} +{# Error Message Params #} +{% set groupErrorClass = " wmnds-fe-group--error" if params.error %} +{% set errorContentText = params.errorMessage.contentText if params.errorMessage.contentText else "Please select an option" %} +{% set errorContentHTML = params.errorMessage.contentHTML if params.errorMessage.contentHTML else null %} +{% set errorId = params.errorMessage.id if params.errorMessage.id else null %} -
+
{%- if hasQuestion %} @@ -32,6 +38,17 @@ {% endif -%}
+ {% if params.error -%} + {{ + wmndsFeErrorMessage( + { + contentText: errorContentText, + contentHTML: errorContentHTML, + id: errorId + } + ) + }} + {% endif -%} {{ _hintContent }} diff --git a/src/www/pages/components/radios/index.njk.md b/src/www/pages/components/radios/index.njk.md index 654342c8f..26aba5e06 100644 --- a/src/www/pages/components/radios/index.njk.md +++ b/src/www/pages/components/radios/index.njk.md @@ -59,4 +59,27 @@ }} {# End Radios #} +{% markdown %} + +### Radio with error + +{% endmarkdown %} + +{{ + compExample([ + wmndsRadios({ + inline: true, + name: "inline-example", + error: true + }) + ], { + componentPath: "wmnds/components/form-elements/radios/", + njk: true, + njkProps: wmndsRadiosProps, + js: false, + iframe: false + }) +}} +{# End Radios #} + {% endblock %} From 0880b54d6733d0e4582d9c1b85ca0118206e5c0c Mon Sep 17 00:00:00 2001 From: houbly Date: Tue, 12 Jan 2021 12:58:53 +0000 Subject: [PATCH 05/11] add classes --- src/wmnds/components/form-elements/radios/_radios.njk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wmnds/components/form-elements/radios/_radios.njk b/src/wmnds/components/form-elements/radios/_radios.njk index d398730e8..6ac9e470e 100644 --- a/src/wmnds/components/form-elements/radios/_radios.njk +++ b/src/wmnds/components/form-elements/radios/_radios.njk @@ -24,6 +24,7 @@ {% set groupErrorClass = " wmnds-fe-group--error" if params.error %} {% set errorContentText = params.errorMessage.contentText if params.errorMessage.contentText else "Please select an option" %} {% set errorContentHTML = params.errorMessage.contentHTML if params.errorMessage.contentHTML else null %} +{% set errorClasses = " " + params.errorMessage.classes if params.errorMessage.classes else null %} {% set errorId = params.errorMessage.id if params.errorMessage.id else null %}
@@ -44,6 +45,7 @@ { contentText: errorContentText, contentHTML: errorContentHTML, + classes: errorClasses, id: errorId } ) From 2499533e34cb657cd355a6fddaa212452d636a9c Mon Sep 17 00:00:00 2001 From: houbly Date: Tue, 12 Jan 2021 13:25:54 +0000 Subject: [PATCH 06/11] update example --- src/wmnds/components/form-elements/radios/_example.njk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wmnds/components/form-elements/radios/_example.njk b/src/wmnds/components/form-elements/radios/_example.njk index 14e00a56e..bbea5cb6a 100644 --- a/src/wmnds/components/form-elements/radios/_example.njk +++ b/src/wmnds/components/form-elements/radios/_example.njk @@ -42,7 +42,14 @@ classes: null, contentText: "Select one option", contentHTML: null - } + }, + error: false, + errorMessage: { + contentText: "Please select an option", + contentHTML: null, + classes: null, + id: null + } }) }} {% endraw %} \ No newline at end of file From a845174e1535bb650e25b4769ec3de880fb05cbe Mon Sep 17 00:00:00 2001 From: houbly Date: Tue, 12 Jan 2021 14:26:30 +0000 Subject: [PATCH 07/11] removed question from component --- .../components/form-elements/radios/_radios.njk | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/wmnds/components/form-elements/radios/_radios.njk b/src/wmnds/components/form-elements/radios/_radios.njk index 6ac9e470e..a68c95557 100644 --- a/src/wmnds/components/form-elements/radios/_radios.njk +++ b/src/wmnds/components/form-elements/radios/_radios.njk @@ -4,13 +4,10 @@ {# Imports #} {% from "wmnds/components/form-elements/label/_label.njk" import wmndsLabel %} {% from "wmnds/components/icon/_icon.njk" import wmndsIcon %} -{% from "wmnds/components/form-elements/question/_question.njk" import wmndsQuestion %} {% from "wmnds/components/form-elements/error-message/_error-message.njk" import wmndsFeErrorMessage %} {# Set vars #} {% set class = ' wmnds-fe-radios--inline' if params.inline %} -{% set hasQuestion = false if params.question === "" else true %} -{% set question = params.question if params.question %} {% set items = params.items if params.items %} {% set groupClass = " " + params.classes if params.classes %} {% set name = params.name if params.name else "checkbox-example" %} @@ -28,16 +25,6 @@ {% set errorId = params.errorMessage.id if params.errorMessage.id else null %}
-
- - {%- if hasQuestion %} - {{ - wmndsQuestion({ - text: question - }) - }} - {% endif -%} -
{% if params.error -%} {{ @@ -82,7 +69,6 @@ {% endfor %} {% endif %}
-
{% endmacro %} \ No newline at end of file From 38147d48dc76ba2ac6a9030794137d596b4c7818 Mon Sep 17 00:00:00 2001 From: Houston Blyden Date: Tue, 12 Jan 2021 16:26:10 +0000 Subject: [PATCH 08/11] Update src/wmnds/components/form-elements/radios/_properties.njk.json Co-authored-by: Catia Costa <34938764+catiarodriguescosta@users.noreply.github.com> --- .../components/form-elements/radios/_properties.njk.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/wmnds/components/form-elements/radios/_properties.njk.json b/src/wmnds/components/form-elements/radios/_properties.njk.json index ebb72acfd..81af34694 100644 --- a/src/wmnds/components/form-elements/radios/_properties.njk.json +++ b/src/wmnds/components/form-elements/radios/_properties.njk.json @@ -32,11 +32,6 @@ } ] }, - { - "name": "question", - "type": "string", - "description": "Text for the question component relating to the radios." - }, { "name": "hint", "type": "object", From 030e9f789df65b25a8a0b0acc2f9c3b6fb36a3e2 Mon Sep 17 00:00:00 2001 From: Houston Blyden Date: Tue, 12 Jan 2021 16:26:47 +0000 Subject: [PATCH 09/11] Update src/wmnds/components/form-elements/radios/_example.njk Co-authored-by: Catia Costa <34938764+catiarodriguescosta@users.noreply.github.com> --- src/wmnds/components/form-elements/radios/_example.njk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wmnds/components/form-elements/radios/_example.njk b/src/wmnds/components/form-elements/radios/_example.njk index bbea5cb6a..de11997b5 100644 --- a/src/wmnds/components/form-elements/radios/_example.njk +++ b/src/wmnds/components/form-elements/radios/_example.njk @@ -32,7 +32,6 @@ disabled: false } ], - question: "How would you...?", idPrefix: "radios", name: "radios-example", classes: null, @@ -52,4 +51,4 @@ } }) }} -{% endraw %} \ No newline at end of file +{% endraw %} From a3ddd3e69e9da0fe269d77c9b20c70c252dc3ae7 Mon Sep 17 00:00:00 2001 From: Houston Blyden Date: Tue, 12 Jan 2021 16:29:52 +0000 Subject: [PATCH 10/11] add classes param Co-authored-by: Catia Costa <34938764+catiarodriguescosta@users.noreply.github.com> --- .../components/form-elements/radios/_properties.njk.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wmnds/components/form-elements/radios/_properties.njk.json b/src/wmnds/components/form-elements/radios/_properties.njk.json index 81af34694..294313bd0 100644 --- a/src/wmnds/components/form-elements/radios/_properties.njk.json +++ b/src/wmnds/components/form-elements/radios/_properties.njk.json @@ -103,6 +103,11 @@ "name": "contentHTML", "type": "string", "description": "Required. HTML to use within the error message" + }, + { + "name": "classes", + "type": "string", + "description": "Classes to add to the error message." } ] } From f06508c3c8964072e9b1b27ff275df6aa86a856d Mon Sep 17 00:00:00 2001 From: houbly Date: Tue, 12 Jan 2021 16:32:58 +0000 Subject: [PATCH 11/11] format --- src/wmnds/components/form-elements/radios/_properties.njk.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wmnds/components/form-elements/radios/_properties.njk.json b/src/wmnds/components/form-elements/radios/_properties.njk.json index 294313bd0..a69ffd967 100644 --- a/src/wmnds/components/form-elements/radios/_properties.njk.json +++ b/src/wmnds/components/form-elements/radios/_properties.njk.json @@ -104,7 +104,7 @@ "type": "string", "description": "Required. HTML to use within the error message" }, - { + { "name": "classes", "type": "string", "description": "Classes to add to the error message."