Skip to content

Commit c157178

Browse files
committed
Fix editor
1 parent 9f52409 commit c157178

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

packages/js/src/components/MetaboxButton.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import PropTypes from "prop-types";
1212
const MetaboxButtonText = ( { className, ...props } ) => (
1313
<span
1414
className={ classNames(
15-
"yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-left",
15+
"yst-grow yst-overflow-hidden yst-overflow-ellipsis yst-whitespace-nowrap yst-font-wp",
16+
"yst-text-[#555] yst-text-base yst-leading-[normal] yst-subpixel-antialiased yst-text-start",
1617
className
1718
) }
1819
{ ...props }
@@ -40,7 +41,9 @@ export const MetaboxButton = ( { className, ...props } ) => (
4041
<button
4142
type="button"
4243
className={ classNames(
43-
"yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pr-4 yst-pl-6 yst-space-x-2 yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0] focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",
44+
"yst-flex yst-items-center yst-w-full yst-pt-4 yst-pb-4 yst-pe-4 yst-ps-6 yst-space-x-2 rtl:yst-space-x-reverse",
45+
"yst-border-t yst-border-t-[rgb(0,0,0,0.2)] yst-rounded-none yst-transition-all hover:yst-bg-[#f0f0f0]",
46+
"focus:yst-outline focus:yst-outline-[1px] focus:yst-outline-[color:#0066cd] focus:-yst-outline-offset-1 focus:yst-shadow-[0_0_3px_rgba(8,74,103,0.8)]",
4447
className
4548
) }
4649
{ ...props }

packages/js/src/components/WooCommerceUpsell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const WooCommerceUpsell = ( { link, text } ) => {
1919
target="_blank"
2020
rel="noopener"
2121
>
22-
<LockOpenIcon className="yst-w-4 yst-h-4 yst--ml-1 yst-shrink-0" />
22+
<LockOpenIcon className="yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0" />
2323
{ sprintf(
2424
/* translators: %1$s expands to Yoast WooCommerce SEO. */
2525
__( "Unlock with %1$s", "wordpress-seo" ),

packages/js/src/components/contentAnalysis/Results.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Results extends Component {
9898
/>
9999
{ this.props.shouldUpsellHighlighting &&
100100
<div className="yst-root">
101-
<Badge className="yst-absolute yst-px-[3px] yst-py-[3px] yst--right-[6.5px] yst--top-[6.5px]" size="small" variant="upsell">
101+
<Badge className="yst-absolute yst-px-[3px] yst-py-[3px] yst--end-[6.5px] yst--top-[6.5px]" size="small" variant="upsell">
102102
<LockClosedIcon className="yst-w-2.5 yst-h-2.5 yst-shrink-0" role="img" aria-hidden={ true } focusable={ false } />
103103
</Badge>
104104
</div>

packages/js/src/components/modals/InternalLinkingSuggestionsUpsell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const InternalLinkingSuggestionsUpsell = () => {
9393
{ __( "Internal linking suggestions", "wordpress-seo" ) }
9494
</MetaboxButton.Text>
9595
<Badge size="small" variant="upsell">
96-
<LockClosedIcon className="yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0" { ...svgAriaProps } />
96+
<LockClosedIcon className="yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0" { ...svgAriaProps } />
9797
<span>Premium</span>
9898
</Badge>
9999
</MetaboxButton>

packages/js/src/components/modals/KeywordUpsell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const KeywordUpsell = () => {
7676
{ __( "Add related keyphrase", "wordpress-seo" ) }
7777
</MetaboxButton.Text>
7878
<Badge size="small" variant="upsell">
79-
<LockClosedIcon className="yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0" { ...svgAriaProps } />
79+
<LockClosedIcon className="yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0" { ...svgAriaProps } />
8080
<span>Premium</span>
8181
</Badge>
8282
</MetaboxButton>

packages/js/src/components/modals/PremiumSEOAnalysisModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const PremiumSEOAnalysisModal = ( { location } ) => {
6161
{ __( "Premium SEO analysis", "wordpress-seo" ) }
6262
</MetaboxButton.Text>
6363
<Badge size="small" variant="upsell">
64-
<LockClosedIcon className="yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0" { ...svgAriaProps } />
64+
<LockClosedIcon className="yst-w-2.5 yst-h-2.5 yst-me-1 yst-shrink-0" { ...svgAriaProps } />
6565
<span>Premium</span>
6666
</Badge>
6767
</MetaboxButton>

packages/js/src/shared-admin/components/ai-fix-assessments-upsell.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const AiFixAssessmentsUpsell = ( {
4343
thumbnail={ thumbnail }
4444
wistiaEmbedPermission={ wistiaEmbedPermission }
4545
/>
46-
<Badge className="yst-absolute yst-right-0 yst-mr-4 yst-text-center yst-justify-center" variant="info" style={ { top: "-8px" } }>
46+
<Badge className="yst-absolute yst-end-4 yst-text-center yst-justify-center" variant="info" style={ { top: "-8px" } }>
4747
{ __( "Beta", "wordpress-seo-premium" ) }
4848
</Badge>
4949
</div>
@@ -92,7 +92,7 @@ export const AiFixAssessmentsUpsell = ( {
9292
target="_blank"
9393
ref={ initialFocus }
9494
>
95-
<LockOpenIcon className="yst--ml-1 yst-mr-2 yst-h-5 yst-w-5" />
95+
<LockOpenIcon className="yst--ms-1 yst-me-2 yst-h-5 yst-w-5" />
9696
{ upsellLabel }
9797
<span className="yst-sr-only">
9898
{

packages/js/src/shared-admin/components/ai-generate-titles-and-descriptions-upsell.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const AiGenerateTitlesAndDescriptionsUpsell = ( {
5050
thumbnail={ thumbnail }
5151
wistiaEmbedPermission={ wistiaEmbedPermission }
5252
/>
53-
<Badge className="yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2" variant="info">Beta</Badge>
53+
<Badge className="yst-absolute yst-top-2 yst-end-4" variant="info">Beta</Badge>
5454
</div>
5555
<div className="yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center">
5656
<span className="yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center">
@@ -105,7 +105,7 @@ export const AiGenerateTitlesAndDescriptionsUpsell = ( {
105105
target="_blank"
106106
ref={ initialFocus }
107107
>
108-
<LockOpenIcon className="yst--ml-1 yst-mr-2 yst-h-5 yst-w-5" />
108+
<LockOpenIcon className="yst--ms-1 yst-me-2 yst-h-5 yst-w-5" />
109109
{ upsellLabel }
110110
<span className="yst-sr-only">
111111
{

0 commit comments

Comments
 (0)