-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add text indext control #70861
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
Add text indext control #70861
Conversation
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Thanks for the PR.
Ideally, we should discuss whether this style should be added as block support. An ad-hoc approach would make it harder to migrate to block support in the future. That is, it should work like this.
block.json:
{
"apiVersion": 3,
"name": "core/paragraph",
"title": "Paragraph",
"supports": {
"typography": {
"textIndent": true
}
}
}Moreover, we should probably support this in the global styles as well, so in theme.json we'd have something like this:
{
"$schema": "../../schemas/json/theme.json",
"version": 3,
"settings": {
"blocks": {
"core/paragraph": {
"typography": {
"textIndent": true
}
}
}
},
"styles": {
"blocks": {
"core/paragraph": {
"typography": {
"textIndent": "20px"
}
}
}
}
}|
See: #55225 (comment) |
|
I think this feature would be best worked into the theme.json layer first, without exposing the UI. Let's close this PR in favor of #59496. |
Closes #55225
What?
This PR implements a new Text Indent control component and integrates it into the Paragraph block's typographic settings.
Why?
Lacked a direct way to control text indentation.
How?
A new control component has been developed to manage text indentation values.
Testing Instructions
Screenshots or screencast