Skip to content

Commit ae69c9d

Browse files
jorgefilipecostamukeshpanchal27youknowriadnikunj8866t-hamano
authored andcommitted
Fix RTL styling on Connectors, Font Library, and boot-based admin pages (#76496)
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org> Co-authored-by: mukeshpanchal27 <mukesh27@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: nikunj8866 <nikunj8866@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
1 parent 2d68689 commit ae69c9d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/boot/src/components/root/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
position: fixed;
3434
top: 0;
3535
bottom: 0;
36-
left: 0;
36+
inset-inline-start: 0;
3737
width: 300px;
3838
max-width: 85vw;
3939
background: var(--wpds-color-bg-surface-neutral-weak, #f0f0f0);
@@ -76,7 +76,7 @@
7676

7777
.boot-layout--single-page & {
7878
margin-top: 0;
79-
margin-left: 0;
79+
margin-inline-start: 0;
8080
}
8181
}
8282
}

packages/wp-build/templates/page-wp-admin.php.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function {{PREFIX}}_{{PAGE_SLUG_UNDERSCORE}}_wp_admin_render_page() {
231231

232232
/* Reset wp-admin padding */
233233
#wpcontent {
234-
padding-left: 0;
234+
padding-inline-start: 0;
235235
}
236236
#wpbody-content {
237237
padding-bottom: 0;
@@ -247,14 +247,14 @@ function {{PREFIX}}_{{PAGE_SLUG_UNDERSCORE}}_wp_admin_render_page() {
247247

248248
/* Accessibility regions */
249249
.a11y-speak-region {
250-
left: -1px;
250+
inset-inline-start: -1px;
251251
top: -1px;
252252
}
253253

254254
/* Admin menu indicators */
255255
ul#adminmenu a.wp-has-current-submenu::after,
256256
ul#adminmenu > li.current > a.current::after {
257-
border-right-color: #fff;
257+
border-inline-end-color: #fff;
258258
}
259259

260260
/* Media frame fix */

0 commit comments

Comments
 (0)