Skip to content

Commit

Permalink
Fix integration page RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
igorschoester committed Dec 17, 2024
1 parent c157178 commit 35b98d4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions packages/js/src/integrations-page/algolia-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export const AlgoliaIntegration = ( {
}
</span>
</Link>
{ ( ! isNetworkControlEnabled && isMultisiteAvailable ) && <Badge className="yst-absolute yst-top-2 yst-right-2">{ __( "Network Disabled", "wordpress-seo" ) }</Badge> }
{ ( isNetworkControlEnabled && integration.isNew ) && <Badge className="yst-absolute yst-top-2 yst-right-2">{ __( "New", "wordpress-seo" ) }</Badge> }
{ ( ! isNetworkControlEnabled && isMultisiteAvailable ) && <Badge className="yst-absolute yst-top-2 yst-end-2">{ __( "Network Disabled", "wordpress-seo" ) }</Badge> }
{ ( isNetworkControlEnabled && integration.isNew ) && <Badge className="yst-absolute yst-top-2 yst-end-2">{ __( "New", "wordpress-seo" ) }</Badge> }
</Card.Header>
<Card.Content>
<div>
Expand All @@ -103,7 +103,7 @@ export const AlgoliaIntegration = ( {
__( "(Opens in a new browser tab)", "wordpress-seo" )
}
</span>
<ArrowSmRightIcon className="yst-h-4 yst-w-4 yst-ml-1 yst-icon-rtl" />
<ArrowSmRightIcon className="yst-h-4 yst-w-4 yst-ms-1 yst-icon-rtl" />
</Link> }
</p>
</div>
Expand Down Expand Up @@ -133,7 +133,7 @@ export const AlgoliaIntegration = ( {
target="_blank"
>
<LockOpenIcon
className="yst--ml-1 yst-mr-2 yst-h-5 yst-w-5 yst-text-yellow-900"
className="yst--ms-1 yst-me-2 yst-h-5 yst-w-5 yst-text-yellow-900"
/>
{ __( "Unlock with Premium", "wordpress-seo" ) }
<span className="yst-sr-only">
Expand Down
8 changes: 4 additions & 4 deletions packages/js/src/integrations-page/simple-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const SimpleIntegration = ( { integration, isActive, children } ) => {
}
</span>
</Link>
{ ( integration.isNew ) && <Badge className="yst-absolute yst-top-2 yst-right-2">{ __( "New", "wordpress-seo" ) }</Badge> }
{ ( integration.isNew ) && <Badge className="yst-absolute yst-top-2 yst-end-2">{ __( "New", "wordpress-seo" ) }</Badge> }
</Card.Header>
<Card.Content>
<div>
Expand All @@ -47,7 +47,7 @@ export const SimpleIntegration = ( { integration, isActive, children } ) => {
return (
<li key={ idx } className="yst-flex yst-items-start">
<CheckIcon
className="yst-h-5 yst-w-5 yst-mr-2 yst-text-green-400 yst-flex-shrink-0"
className="yst-h-5 yst-w-5 yst-me-2 yst-text-green-400 yst-flex-shrink-0"
/>
<span> { usp } </span>
</li>
Expand All @@ -66,7 +66,7 @@ export const SimpleIntegration = ( { integration, isActive, children } ) => {
__( "(Opens in a new browser tab)", "wordpress-seo" )
}
</span>
<ArrowSmRightIcon className="yst-h-4 yst-w-4 yst-ml-1 yst-icon-rtl" />
<ArrowSmRightIcon className="yst-h-4 yst-w-4 yst-ms-1 yst-icon-rtl" />
</Link> }
</div>
</Card.Content>
Expand All @@ -83,7 +83,7 @@ export const SimpleIntegration = ( { integration, isActive, children } ) => {
target="_blank"
>
<LockOpenIcon
className="yst--ml-1 yst-mr-2 yst-h-5 yst-w-5 yst-text-yellow-900"
className="yst--ms-1 yst-me-2 yst-h-5 yst-w-5 yst-text-yellow-900"
/>
{ __( "Unlock with Premium", "wordpress-seo" ) }
<span className="yst-sr-only">
Expand Down
8 changes: 4 additions & 4 deletions packages/js/src/integrations-page/toggleable-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export const ToggleableIntegration = ( {
}
</span>
</Link>
{ ( ! isNetworkControlEnabled && isMultisiteAvailable ) && <Badge className="yst-absolute yst-top-2 yst-right-2">{ __( "Network Disabled", "wordpress-seo" ) }</Badge> }
{ ( isNetworkControlEnabled && integration.isNew ) && <Badge className="yst-absolute yst-top-2 yst-right-2">{ __( "New", "wordpress-seo" ) }</Badge> }
{ ( ! isNetworkControlEnabled && isMultisiteAvailable ) && <Badge className="yst-absolute yst-top-2 yst-end-2">{ __( "Network Disabled", "wordpress-seo" ) }</Badge> }
{ ( isNetworkControlEnabled && integration.isNew ) && <Badge className="yst-absolute yst-top-2 yst-end-2">{ __( "New", "wordpress-seo" ) }</Badge> }
</Card.Header>
<Card.Content>
<div>
Expand All @@ -100,7 +100,7 @@ export const ToggleableIntegration = ( {
__( "(Opens in a new browser tab)", "wordpress-seo" )
}
</span>
<ArrowSmRightIcon className="yst-h-4 yst-w-4 yst-ml-1 yst-icon-rtl" />
<ArrowSmRightIcon className="yst-h-4 yst-w-4 yst-ms-1 yst-icon-rtl" />
</Link> }
</p>
</div>
Expand All @@ -122,7 +122,7 @@ export const ToggleableIntegration = ( {
target="_blank"
>
<LockOpenIcon
className="yst--ml-1 yst-mr-2 yst-h-5 yst-w-5 yst-text-yellow-900"
className="yst--ml-s yst-me-2 yst-h-5 yst-w-5 yst-text-yellow-900"
/>
{ __( "Unlock with Premium", "wordpress-seo" ) }
<span className="yst-sr-only">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const WoocommerceIntegration = ( {
target="_blank"
>
<LockOpenIcon
className="yst--ml-1 yst-mr-2 yst-h-5 yst-w-5 yst-text-yellow-900"
className="yst--ms-1 yst-me-2 yst-h-5 yst-w-5 yst-text-yellow-900"
/>
{
sprintf(
Expand Down

0 comments on commit 35b98d4

Please sign in to comment.