Skip to content

Commit

Permalink
[open-formulieren/open-forms#3414] Refactored css to use cosign desig…
Browse files Browse the repository at this point in the history
…n tokens
  • Loading branch information
vaszig committed Sep 22, 2023
1 parent 6c5acbd commit efb2994
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
22 changes: 10 additions & 12 deletions src/components/LoginOptions/LoginOptionsDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,16 @@ const LoginOptionsDisplay = ({
)}

{cosignLoginInfo && (
<>
<div className={getBEMClassName('login-options__cosign')}>
<h2 className={getBEMClassName('login-options__caption')}>
<FormattedMessage
description="Log in to co-sign the form title"
defaultMessage="Log in to co-sign the form"
/>
</h2>

<LoginButton key={cosignLoginInfo.identifier} option={cosignLoginInfo} />
</div>
</>
<div className={getBEMClassName('login-options__cosign')}>
<h2 className={getBEMClassName('login-options__caption')}>
<FormattedMessage
description="Log in to co-sign the form title"
defaultMessage="Log in to co-sign the form"
/>
</h2>

<LoginButton key={cosignLoginInfo.identifier} option={cosignLoginInfo} />
</div>
)}
</div>
);
Expand Down
9 changes: 5 additions & 4 deletions src/scss/components/_login-options.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
@include h2;
@include margin(auto);
}
}

.#{prefix(login-options__cosign)} {
padding: 0.6em;
background-color: var(--of-color-read-only-bg);
@include bem.element('cosign') {
padding-block: var(--of-login-options-cosign-padding-block);
padding-inline: var(--of-login-options-cosign-padding-inline);
background-color: var(--of-login-options-cosign-background-color);
}
}

0 comments on commit efb2994

Please sign in to comment.