From f35721ea83400cccdb2fef4bdf3427da3c9bf356 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Fri, 4 Nov 2022 13:39:47 +0100 Subject: [PATCH] refactor(radio): show invalid state (#146) * refactor: added invalid state demo and beautified HTML code * chore: reordered --- source/_patterns/01-elements/radio/radio.hbs | 9 ++++++++- .../01-elements/radio/radio~disabled-checked.json | 2 +- source/_patterns/01-elements/radio/radio~disabled.json | 2 +- source/_patterns/01-elements/radio/radio~invalid.json | 4 ++++ 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 source/_patterns/01-elements/radio/radio~invalid.json diff --git a/source/_patterns/01-elements/radio/radio.hbs b/source/_patterns/01-elements/radio/radio.hbs index 77ef49b01d..71c7f6aa68 100644 --- a/source/_patterns/01-elements/radio/radio.hbs +++ b/source/_patterns/01-elements/radio/radio.hbs @@ -1,2 +1,9 @@ - + diff --git a/source/_patterns/01-elements/radio/radio~disabled-checked.json b/source/_patterns/01-elements/radio/radio~disabled-checked.json index 87b12da129..a062e3978e 100644 --- a/source/_patterns/01-elements/radio/radio~disabled-checked.json +++ b/source/_patterns/01-elements/radio/radio~disabled-checked.json @@ -1,5 +1,5 @@ { - "id": "radio06", + "id": "radio04", "checked": true, "disabled": true } diff --git a/source/_patterns/01-elements/radio/radio~disabled.json b/source/_patterns/01-elements/radio/radio~disabled.json index 41edd6430b..b503f8b96a 100644 --- a/source/_patterns/01-elements/radio/radio~disabled.json +++ b/source/_patterns/01-elements/radio/radio~disabled.json @@ -1,4 +1,4 @@ { - "id": "radio05", + "id": "radio03", "disabled": true } diff --git a/source/_patterns/01-elements/radio/radio~invalid.json b/source/_patterns/01-elements/radio/radio~invalid.json new file mode 100644 index 0000000000..f5e594bc0b --- /dev/null +++ b/source/_patterns/01-elements/radio/radio~invalid.json @@ -0,0 +1,4 @@ +{ + "id": "radio05", + "invalid": true +}