A platform for community discussion. Free, open, simple.
UX: remove wizard-specific styling and add core classes (#34323)
chapoibb3ca2c81a3c
diff --git a/app/assets/javascripts/discourse/app/static/wizard/components/wizard-step.gjs b/app/assets/javascripts/discourse/app/static/wizard/components/wizard-step.gjsindex a8e74dc40e4..ab9455819cc 100644--- a/app/assets/javascripts/discourse/app/static/wizard/components/wizard-step.gjs+++ b/app/assets/javascripts/discourse/app/static/wizard/components/wizard-step.gjs@@ -263,7 +263,7 @@ export default class WizardStepComponent extends Component {{{on "click" this.backStep}}disabled={{this.saving}}type="button"- class="wizard-container__button back"+ class="wizard-container__button back btn-transparent">{{i18n "wizard.back"}}</button>@@ -276,7 +276,7 @@ export default class WizardStepComponent extends Component {{{on "click" this.finish}}disabled={{this.saving}}type="button"- class="wizard-container__button finish"+ class="wizard-container__button finish btn-primary">{{i18n "wizard.finish"}}</button>@@ -287,7 +287,7 @@ export default class WizardStepComponent extends Component {{{on "click" this.jumpIn}}disabled={{this.saving}}type="button"- class="wizard-container__button primary jump-in"+ class="wizard-container__button jump-in btn-primary">{{i18n "wizard.jump_in"}}</button>@@ -296,7 +296,7 @@ export default class WizardStepComponent extends Component {{{on "click" this.nextStep}}disabled={{this.saving}}type="button"- class="wizard-container__button primary next"+ class="wizard-container__button next btn-primary">{{i18n "wizard.next"}}</button>diff --git a/app/assets/stylesheets/wizard.scss b/app/assets/stylesheets/wizard.scssindex 8e0158f1a8a..4f11e9afd1a 100644--- a/app/assets/stylesheets/wizard.scss+++ b/app/assets/stylesheets/wizard.scss@@ -17,6 +17,13 @@ $blob-mobile-bg: absolute-image-url("/branded-background-mobile.svg");}}+// horizon specific style+.experimental-screen {+ .wizard & {+ display: none;+ }+}+body.wizard {background-color: var(--secondary);background-image: $blob-bg;@@ -24,7 +31,6 @@ body.wizard {background-repeat: no-repeat;background-position: bottom;color: var(--primary-very-high);- font-family: system-ui, Arial, sans-serif;.wrap {max-width: 100%;@@ -272,14 +278,6 @@ body.wizard {}&__button {- border-radius: 2px;- border: 0;- padding: 0.5em;- transition: var(--d-button-transition);- text-decoration: none;- background-color: var(--secondary);- color: var(--primary-very-high);- cursor: pointer;font-size: var(--font-up-1);}@@ -312,43 +310,12 @@ body.wizard {}}- &__button.primary:hover,- &__button.primary:focus {- background-color: var(--tertiary-hover);- }-- &__button.primary:active {- background-color: var(--tertiary-high);- }-- &__button.primary:disabled {- background-color: var(--tertiary-low);- }-- &__button.jump-in {- &:hover {- background-color: var(--primary-300);- }- }-&__button.finish {- color: var(--tertiary);-@include viewport.until(sm) {order: 2;}}- &__button.finish:hover {- color: var(--tertiary-hover);- background-color: transparent;- }-- &__button.finish:active,- &__button.finish:disabled {- background-color: transparent;- }-&__button.next {min-width: 70px;margin-left: 1em;