Commit 268d877d20 for wordpress.org
commit 268d877d20283b5af7353550b3095f0af31182af
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Sun Nov 23 23:45:29 2025 +0000
Twenty Nineteen: Correct center or right alignment for Download link in the File block.
Follow-up to [43808].
Props lakshyajeet, truptikanzariya, sabernhardt, sourabhjain, SirLouen, poojapadamad, SergeyBiryukov.
Fixes #59263.
Built from https://develop.svn.wordpress.org/trunk@61284
git-svn-id: http://core.svn.wordpress.org/trunk@60596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
index af1ec47150..92910ad63c 100644
--- a/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
+++ b/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
@@ -804,6 +804,16 @@
outline-offset: -4px;
}
}
+
+ &.aligncenter .wp-block-file__button {
+ margin-left: auto;
+ margin-right: auto;
+ }
+
+ &.alignright .wp-block-file__button {
+ margin-left: auto;
+ margin-right: 0;
+ }
}
//! Code
diff --git a/wp-content/themes/twentynineteen/style-editor.css b/wp-content/themes/twentynineteen/style-editor.css
index 5206b537e2..d62b05b23b 100644
--- a/wp-content/themes/twentynineteen/style-editor.css
+++ b/wp-content/themes/twentynineteen/style-editor.css
@@ -1386,6 +1386,16 @@ ul.wp-block-archives li ul,
text-align: center;
}
+.wp-block[data-align="center"] .wp-block-file__button {
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.wp-block[data-align="right"] .wp-block-file__button {
+ margin-left: auto;
+ margin-right: 0;
+}
+
/** === Latest Posts === */
.wp-block-latest-posts .wp-block-latest-posts__post-date {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
diff --git a/wp-content/themes/twentynineteen/style-editor.scss b/wp-content/themes/twentynineteen/style-editor.scss
index c4c79817ae..6d57b8ccb7 100644
--- a/wp-content/themes/twentynineteen/style-editor.scss
+++ b/wp-content/themes/twentynineteen/style-editor.scss
@@ -782,6 +782,16 @@ ul.wp-block-archives,
text-align: center;
}
+.wp-block[data-align="center"] .wp-block-file__button {
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.wp-block[data-align="right"] .wp-block-file__button {
+ margin-left: auto;
+ margin-right: 0;
+}
+
/** === Latest Posts === */
.wp-block-latest-posts {
diff --git a/wp-content/themes/twentynineteen/style-rtl.css b/wp-content/themes/twentynineteen/style-rtl.css
index 9f1700c012..1796b73a40 100644
--- a/wp-content/themes/twentynineteen/style-rtl.css
+++ b/wp-content/themes/twentynineteen/style-rtl.css
@@ -6208,6 +6208,16 @@ body.page .main-navigation {
outline-offset: -4px;
}
+.entry .entry-content .wp-block-file.aligncenter .wp-block-file__button {
+ margin-right: auto;
+ margin-left: auto;
+}
+
+.entry .entry-content .wp-block-file.alignright .wp-block-file__button {
+ margin-right: auto;
+ margin-left: 0;
+}
+
.entry .entry-content .wp-block-code {
border-radius: 0;
}
diff --git a/wp-content/themes/twentynineteen/style.css b/wp-content/themes/twentynineteen/style.css
index 634a947b3a..23608b03fd 100644
--- a/wp-content/themes/twentynineteen/style.css
+++ b/wp-content/themes/twentynineteen/style.css
@@ -6220,6 +6220,16 @@ body.page .main-navigation {
outline-offset: -4px;
}
+.entry .entry-content .wp-block-file.aligncenter .wp-block-file__button {
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.entry .entry-content .wp-block-file.alignright .wp-block-file__button {
+ margin-left: auto;
+ margin-right: 0;
+}
+
.entry .entry-content .wp-block-code {
border-radius: 0;
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 04fdf5b654..bc264f22a0 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.0-alpha-61283';
+$wp_version = '7.0-alpha-61284';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.