Skip to content

Commit

Permalink
ASUB-8954 Fixing style (#2282)
Browse files Browse the repository at this point in the history
Fixing style,  attending feedback and fixing typo
  • Loading branch information
LauraPinilla authored Dec 18, 2024
1 parent 3028ccc commit 2ff94d5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
5 changes: 5 additions & 0 deletions blocks/identity-block/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@
@include scss.block-properties("social-sign-on-button-container-apple-custom");
}

&__sso{
@include scss.block-components("social-sign-on-button-container-apple-sso");
@include scss.block-properties("social-sign-on-button-container-apple-sso");
}

@include scss.block-components("social-sign-on-button-container-apple");
@include scss.block-properties("social-sign-on-button-container-apple");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function AppleSignIn({ customButtons, socialSignOnIn, className, oidcClients = [
return (
<div
data-testid="apple-sign-in-button"
style={{ width: '100%' }}
className={`${className}__Apple__sso`}
>
<Button
id="apple-btn"
Expand Down
2 changes: 1 addition & 1 deletion blocks/identity-block/features/social-sign-on/default.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ SocialSignOnBlock.propTypes = {
"Used when we want to hide the ---OR--- divider",
}),
customButtons: PropTypes.bool.tag({
name: "Custom Facebook/Gooogle/Apple buttons",
name: "Custom Facebook/Google/Apple buttons",
defaultValue: true,
description:
"Render a custom Facebook/Google/Apple buttons or the ones provided by Facebook, Google, and Apple.",
Expand Down
10 changes: 10 additions & 0 deletions blocks/identity-block/themes/news.json
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,16 @@
"desktop": {}
}
},
"social-sign-on-button-container-apple-sso":{
"styles": {
"default": {
"inline-size": "100%",
"justify-content": "center",
"display": "flex"
},
"desktop": {}
}
},
"social-sign-on-dividerWithText": {
"styles": {
"default": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const ReviewOrder = ({
result = await stripe.confirmCardPayment(
clientSecret,
{
payment_method: event.paymentMethod.id,
payment_method: event?.paymentMethod?.id,
},
{
handleActions: false,
Expand All @@ -274,7 +274,7 @@ const ReviewOrder = ({
result = await stripe.confirmCardSetup(
clientSecret,
{
payment_method: event.paymentMethod.id,
payment_method: event?.paymentMethod?.id,
},
{
handleActions: false,
Expand All @@ -298,7 +298,7 @@ const ReviewOrder = ({
Sales.finalizePayment(
orderNumber,
stripeIntents?.paymentMethodID,
result.paymentIntent.id,
result?.paymentIntent?.id,
null,
recaptchaStored || captchaToken,
)
Expand All @@ -314,7 +314,7 @@ const ReviewOrder = ({
Sales.finalizePayment(
orderNumber,
stripeIntents?.paymentMethodID,
result.setupIntent.id,
result?.setupIntent?.id,
null,
recaptchaStored || captchaToken,
)
Expand Down

0 comments on commit 2ff94d5

Please sign in to comment.