diff --git a/ui/app/styles/components/two-step-button.scss b/ui/app/styles/components/two-step-button.scss index 18ed9fb01..b46b1a439 100644 --- a/ui/app/styles/components/two-step-button.scss +++ b/ui/app/styles/components/two-step-button.scss @@ -1,12 +1,16 @@ .two-step-button { - display: inline; + display: inline-block; + vertical-align: middle; position: relative; + font-size: $body-size; + line-height: 1; .confirmation-text { position: absolute; left: 0; - top: -1.2em; + top: -1.5em; font-size: $body-size; + line-height: 1; font-weight: $weight-normal; color: darken($grey-blue, 20%); white-space: nowrap; diff --git a/ui/app/templates/components/freestyle/sg-two-step-button.hbs b/ui/app/templates/components/freestyle/sg-two-step-button.hbs new file mode 100644 index 000000000..f39096b0e --- /dev/null +++ b/ui/app/templates/components/freestyle/sg-two-step-button.hbs @@ -0,0 +1,22 @@ +{{#freestyle-usage "two-step-button" title="Two Step Button"}} +
+ {{two-step-button + idleText="Scary Action" + cancelText="Nvm" + confirmText="Yep" + confirmationMessage="Wait, really? Like...seriously?"}} +
+{{/freestyle-usage}} + +{{#freestyle-usage "two-step-button-title" title="Two Step Button in Title"}} +
+

+ This is a page title + {{two-step-button + idleText="Scary Action" + cancelText="Nvm" + confirmText="Yep" + confirmationMessage="Wait, really? Like...seriously?"}} +

+
+{{/freestyle-usage}} diff --git a/ui/app/templates/components/two-step-button.hbs b/ui/app/templates/components/two-step-button.hbs index a7762124b..e9fe906b5 100644 --- a/ui/app/templates/components/two-step-button.hbs +++ b/ui/app/templates/components/two-step-button.hbs @@ -1,16 +1,16 @@ {{#if isIdle}} - {{else if isPendingConfirmation}} {{confirmationMessage}} - -