From dff1327eba72fa76446cc4901d341ab36fc2274b Mon Sep 17 00:00:00 2001 From: "Ella E." Date: Mon, 13 Jan 2025 23:04:42 -0700 Subject: [PATCH] UX: Remove flat icons from wizard step two (#30761) ### What's changed? This PR removes the flat icons from wizard step 2, as they are not used elsewhere in the wizard. Keeping the steps consistent with the existing style improves visual alignment and avoids unnecessary elements. ### Before image ### After image --- .../discourse/app/static/wizard/components/fields/radio.gjs | 4 ---- lib/wizard/builder.rb | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/app/static/wizard/components/fields/radio.gjs b/app/assets/javascripts/discourse/app/static/wizard/components/fields/radio.gjs index 3412641137e..0fd9e96e06f 100644 --- a/app/assets/javascripts/discourse/app/static/wizard/components/fields/radio.gjs +++ b/app/assets/javascripts/discourse/app/static/wizard/components/fields/radio.gjs @@ -4,7 +4,6 @@ import { on } from "@ember/modifier"; import { action, set } from "@ember/object"; import PluginOutlet from "discourse/components/plugin-outlet"; import concatClass from "discourse/helpers/concat-class"; -import icon from "discourse/helpers/d-icon"; import withEventValue from "discourse/helpers/with-event-value"; export default class Radio extends Component { @@ -54,9 +53,6 @@ export default class Radio extends Component { {{on "change" (withEventValue this.selectionChanged)}} /> - {{#if choice.icon}} - {{icon choice.icon}} - {{/if}} {{choice.label}} diff --git a/lib/wizard/builder.rb b/lib/wizard/builder.rb index 7800f479c15..ca041d30c79 100644 --- a/lib/wizard/builder.rb +++ b/lib/wizard/builder.rb @@ -90,8 +90,8 @@ class Wizard type: "radio", value: SiteSetting.invite_only ? "invite_only" : "sign_up", ) do |field| - field.add_choice("sign_up", icon: "user-plus") - field.add_choice("invite_only", icon: "paper-plane") + field.add_choice("sign_up") + field.add_choice("invite_only") end step.add_field(