-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Feature: Add new wp-base-styles css file to provide high base variables to be used across the admin
#8909
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
Feature: Add new wp-base-styles css file to provide high base variables to be used across the admin
#8909
Conversation
…e used across the admin
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
# Conflicts: # package-lock.json # package.json # src/wp-includes/assets/script-loader-packages.min.php
|
Hey @t-hamano 👋 Given you've helped getting this merged into Gutenberg, would you be able to review this patch here also? |
| } | ||
|
|
||
| // RTL CSS. | ||
| $rtl_styles = array( |
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.
I haven't testedthis PR yet, but probably we also need to enqueue RTL CSS, right?
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.
@t-hamano my understanding is we don't because it only adds color CSS variables :)
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.
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.
@t-hamano I think we would need to adjust the build in the Gutenberg repo for this so it doesn't emit the file in the first place 🤔 That should be handled separately though as the package is already bundled like this in core right now. it just isn't used for anything. This PR only adds the usage of the file that is already in that location.
|
We also need to add wordpress-develop/src/wp-includes/script-loader.php Lines 1668 to 1678 in b47e1c7
Otherwise, the user color scheme is not applied to the elements inside the iframed editor. See WordPress/gutenberg#69130 (comment) |
Ahhh great catch! Fixed in 5d015f4 |
t-hamano
left a comment
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.
Looks good to me 👍
|
This was committed in https://core.trac.wordpress.org/changeset/61517 |

Trac ticket: https://core.trac.wordpress.org/ticket/49930 (part of) & https://core.trac.wordpress.org/ticket/64308
Note
This is a backport for WordPress/gutenberg#69130
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.