From 0fbce0aa85b67d842de2049e433dfd2aff02db57 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 24 Jul 2024 14:25:34 +0200 Subject: [PATCH] DEV: adds a way to set a title/description to a radio (#28049) Usage: ```
One title One description
``` --- .../fk/control/radio-group/radio.gjs | 13 +++++- .../form-kit/controls/radio-test.gjs | 45 +++++++++++++++++++ .../common/form-kit/_control-radio.scss | 34 ++++++++------ .../components/sections/atoms/05-forms.hbs | 9 +++- 4 files changed, 85 insertions(+), 16 deletions(-) create mode 100644 app/assets/javascripts/discourse/tests/integration/components/form-kit/controls/radio-test.gjs diff --git a/app/assets/javascripts/discourse/app/form-kit/components/fk/control/radio-group/radio.gjs b/app/assets/javascripts/discourse/app/form-kit/components/fk/control/radio-group/radio.gjs index 7ae2fba4abd..a0e4dd4a39d 100644 --- a/app/assets/javascripts/discourse/app/form-kit/components/fk/control/radio-group/radio.gjs +++ b/app/assets/javascripts/discourse/app/form-kit/components/fk/control/radio-group/radio.gjs @@ -1,9 +1,18 @@ +import { hash } from "@ember/helper"; import { on } from "@ember/modifier"; import { eq } from "truth-helpers"; import FKLabel from "discourse/form-kit/components/fk/label"; import uniqueId from "discourse/helpers/unique-id"; import withEventValue from "discourse/helpers/with-event-value"; +const radioTitle = ; + +const radioDescription = ; + const FKControlRadioGroupRadio =