Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ prototype(Sandstorm.NeosTwoFactorAuthentication:Component.CancelLoginButton) < p
<Neos.Fusion.Form:Button
attributes.type="submit"
attributes.formnovalidate="true"
attributes.class="neos-two-factor__cancel-login__button"
attributes.class="neos-button neos-two-factor__cancel-login__button"
attributes.aria-label={I18n.id('login.cancel').value('Cancel and return to login').package('Sandstorm.NeosTwoFactorAuthentication').translate()}
>
{I18n.id('login.cancel').value('Cancel and return to login').package('Sandstorm.NeosTwoFactorAuthentication').translate()}
Expand Down
23 changes: 18 additions & 5 deletions Resources/Public/Styles/Login.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,29 @@
justify-content: center;
}

/* Mirrors Neos core's `.neos-login-box .neos-actions button` (the cancel form sits outside
.neos-actions), with the grey secondary background instead of the blue primary one. */
.neos-two-factor__login button.neos-two-factor__cancel-login__button {
display: block;
width: 100%;
height: 40px;
margin-top: 24px;
border: none;
background: transparent !important;
line-height: 40px;
text-align: center;
font-family: "Noto Sans", sans-serif;
font-size: 14px;
-webkit-font-smoothing: antialiased;
color: #fff;
background-color: #323232;
background-image: none;
border: 1px solid #3f3f3f;
box-shadow: none;
text-shadow: none;
box-sizing: border-box;
}

.neos-two-factor__login button.neos-two-factor__cancel-login__button:hover,
.neos-two-factor__login button.neos-two-factor__cancel-login__button:focus {
text-decoration: underline;
.neos-two-factor__login button.neos-two-factor__cancel-login__button:hover {
background-color: #3f3f3f;
}

/* Keyboard focus ring for buttons and button-styled links. Scoped to .neos-two-factor__login
Expand Down
Loading