-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twenty twenty-four: fixed contrast issues, improved documentations, general polishing before release #5623
Conversation
@@ -785,7 +780,6 @@ | |||
"background": "var(--wp--preset--color--base)", | |||
"text": "var(--wp--preset--color--contrast)" | |||
}, | |||
"css": "a{text-decoration-thickness:0.0625em;text-underline-offset: 0.15em}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#723 ✅
@@ -16,7 +16,7 @@ Twenty Twenty-Four is designed to be flexible, versatile and applicable to any w | |||
= 1.0 = | |||
* Released: November 7, 2023 | |||
|
|||
https://wordpress.org/support/article/twenty-twenty-four-changelog#Version_1.0 | |||
https://wordpress.org/documentation/article/twenty-twenty-four-changelog/#Version_1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#718 ✅
@@ -164,6 +146,40 @@ function twentytwentyfour_block_styles() { | |||
|
|||
add_action( 'init', 'twentytwentyfour_block_styles' ); | |||
|
|||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#719 ✅
@@ -10,8 +10,8 @@ | |||
*/ | |||
?> | |||
|
|||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"},"margin":{"top":"0","bottom":"0"}},"dimensions":{"minHeight":"100vw"}},"backgroundColor":"accent-3","layout":{"type":"flex","orientation":"vertical","justifyContent":"center","verticalAlignment":"center"}} --> | |||
<div class="wp-block-group alignfull has-accent-3-background-color has-background" style="min-height:100vw;margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"> | |||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"},"margin":{"top":"0","bottom":"0"}},"dimensions":{"minHeight":"100vh"}},"backgroundColor":"accent-3","layout":{"type":"flex","orientation":"vertical","justifyContent":"center","verticalAlignment":"center"}} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes from WordPress/twentytwentyfour#720 ✅
@@ -50,7 +33,6 @@ function twentytwentyfour_block_styles() { | |||
.is-style-arrow-icon-details { | |||
padding-top: var(--wp--preset--spacing--10); | |||
padding-bottom: var(--wp--preset--spacing--10); | |||
border-bottom: 1px solid var(--wp--preset--color--contrast-2, currentColor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -29,8 +29,8 @@ | |||
|
|||
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|20"}}}} --> | |||
<div class="wp-block-columns alignwide"> | |||
<!-- wp:column {"style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30","top":"var:preset|spacing|30","bottom":"var:preset|spacing|10"}},"border":{"top":{"color":"var:preset|color|base-3","width":"1px"}}}} --> | |||
<div class="wp-block-column" style="border-top-color:var(--wp--preset--color--base-3);border-top-width:1px;padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--30)"> | |||
<!-- wp:column {"style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30","top":"var:preset|spacing|30","bottom":"var:preset|spacing|10"}},"border":{"top":{"color":"var:preset|color|contrast-3","width":"1px"}}}} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes from Change from WordPress/twentytwentyfour#722 ✅
@@ -23,8 +23,8 @@ | |||
</div> | |||
<!-- /wp:group --> | |||
|
|||
<!-- wp:separator {"backgroundColor":"base-3","className":"is-style-wide"} --> | |||
<hr class="wp-block-separator has-text-color has-base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" /> | |||
<!-- wp:separator {"backgroundColor":"contrast","className":"is-style-wide"} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -16,39 +16,39 @@ | |||
|
|||
<!-- wp:group {"align":"wide","layout":{"type":"default"}} --> | |||
<div class="wp-block-group alignwide"> | |||
<!-- wp:separator {"backgroundColor":"contrast-2","className":"is-style-wide"} --> | |||
<hr class="wp-block-separator has-text-color has-contrast-2-color has-alpha-channel-opacity has-contrast-2-background-color has-background is-style-wide"/> | |||
<!-- wp:separator {"backgroundColor":"base","className":"is-style-wide"} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -96,11 +96,6 @@ | |||
"color": "#f6decd", | |||
"name": "Base / Two", | |||
"slug": "base-2" | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -77,11 +77,6 @@ | |||
"name": "Base / Two", | |||
"slug": "base-2" | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -77,11 +77,6 @@ | |||
"name": "Base / Two", | |||
"slug": "base-2" | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -15,11 +15,6 @@ | |||
"name": "Base / Two", | |||
"slug": "base-2" | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -15,11 +15,6 @@ | |||
"name": "Base / Two", | |||
"slug": "base-2" | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -119,11 +119,6 @@ | |||
"name": "Base / Two", | |||
"slug": "base-2" | |||
}, | |||
{ | |||
"color": "#ffffff26", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -31,8 +31,8 @@ | |||
</div> | |||
<!-- /wp:spacer --> | |||
|
|||
<!-- wp:separator {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}},"backgroundColor":"base-3","className":"is-style-wide"} --> | |||
<hr class="wp-block-separator has-text-color has-base-3-color has-alpha-channel-opacity has-base-3-background-color has-background is-style-wide" style="margin-bottom:var(--wp--preset--spacing--40)"/> | |||
<!-- wp:separator {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}},"backgroundColor":"contrast-3","className":"is-style-wide"} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
@@ -111,11 +111,6 @@ | |||
"name": "Base / Two", | |||
"slug": "base-2" | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change from WordPress/twentytwentyfour#722 ✅
Confirmed changes are ported to this PR ✅ Next step: Test the PR to ensure the theme loads and renders without errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready for commit 👍
- Includes the recent changes since RC3 ✅
- Renders properly without errors ✅
- Has a test report to confirm the changes work ✅
Committed to |
Trac ticket: https://core.trac.wordpress.org/ticket/59812
This PR includes the last fixes to the theme before the release:
WordPress/twentytwentyfour#723
WordPress/twentytwentyfour#718
WordPress/twentytwentyfour#719
WordPress/twentytwentyfour#720
WordPress/twentytwentyfour#722
Addresses some issues with contrast on some of the theme variations, we ended up removing a color that is no longer used from the theme and variations.
Fixes an issue with a pattern that was using the wrong unit type for the min-height.
Moves wp_enqueue_block_style call to its own function for clarity.
Updates the link to the docs on the changelog
Props:
onemaggie, richtabor, luminuu, huzaifaalmesbah, sabernhardt, poena
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.