Skip to content
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 indentation support at paragraph block type level #37462

Open
Tracked by #33447 ...
kjellr opened this issue Dec 16, 2021 · 4 comments
Open
Tracked by #33447 ...

Add text indentation support at paragraph block type level #37462

kjellr opened this issue Dec 16, 2021 · 4 comments
Labels
[Block] Paragraph Affects the Paragraph Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement. [Type] Task Issues or PRs that have been broken down into an individual action to take

Comments

@kjellr
Copy link
Contributor

kjellr commented Dec 16, 2021

Currently, paragraphs in the editor have vertical space to differentiate one paragraph from the next:

Screen Shot 2021-12-16 at 12 17 34 PM

To allow for an optional, more "literary" treatment, we should consider adding an option to Global Styles that would collapse that margin and instead use indentation to differentiate from one paragraph to the next:

Screen Shot 2021-12-16 at 12 18 10 PM


Similar: #12451

@kjellr kjellr added [Type] Enhancement A suggestion for improvement. [Block] Paragraph Affects the Paragraph Block [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json labels Dec 16, 2021
@mtias
Copy link
Member

mtias commented Dec 16, 2021

Yes! I'd been wanting to do this for a while, but needed more of the global styles infrastructure in place. I also want to allow justification (with localized hyphens and such) to happen at this level globally so it can be undone easily.

It can also be an opportunity to include some other typographical flair, depending on what the fonts support (discretionary ligatures, etc).

@kjellr kjellr changed the title [Global Styles] Consider an option that allows themes to use indentation instead of space between paragraphs [Global Styles] Consider an option to use indentation instead of space between paragraphs Dec 16, 2021
@skorasaurus
Copy link
Member

related #34688

@mtias mtias added [Type] Task Issues or PRs that have been broken down into an individual action to take Needs Design Needs design efforts. labels Dec 16, 2021
@mtias mtias mentioned this issue Jan 26, 2022
66 tasks
@mtias mtias changed the title [Global Styles] Consider an option to use indentation instead of space between paragraphs Allow using indentation instead of space between paragraphs Sep 10, 2022
@ericmacknight
Copy link

Yes, please!

@mtias mtias changed the title Allow using indentation instead of space between paragraphs Add text indentation support at paragraph block type level Aug 2, 2023
@mtias mtias added the [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi label Feb 5, 2024
@justintadlock
Copy link
Contributor

justintadlock commented Feb 5, 2024

Just adding a +1 here. For folks like me who have some literary or academic work and want to preserve formatting, having a way to text-indent paragraphs would be super helpful.

I've been shipping an indent block style in my theme work to take care of this need (in case anyone needs a solution in the meantime): https://gist.github.com/justintadlock/257087c52e46272f1445fd8ff60c8d83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Paragraph Affects the Paragraph Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement. [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
None yet
Development

No branches or pull requests

5 participants