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

First-line indent slider option for paragraphs #34688

Closed
kosiew opened this issue Sep 9, 2021 · 2 comments
Closed

First-line indent slider option for paragraphs #34688

kosiew opened this issue Sep 9, 2021 · 2 comments
Labels
[Block] Paragraph Affects the Paragraph Block Needs Decision Needs a decision to be actionable or relevant [Type] Enhancement A suggestion for improvement.

Comments

@kosiew
Copy link

kosiew commented Sep 9, 2021

What

A slider option in the paragraph's block menu to enable first-line-only indenting (like a tab in a classic document)

Why

I've run across a few people lately who've requested this. Some people like the classic formatting look (like a book). Others may be used to writing in Word docs (where a tab or margin adjustment to top-line indents are readily available).

In any case, there should be an easy way to toggle this for non-technical users. It's a very "front-facing, writing heavy" feature that people are used to having readily available. Making it a somewhat technical workaround with CSS and classes only enforces that "You can do anything with WordPress, as long as you ave a technical background and can write CSS." This aims to break that mold.

How

CURRENTLY

You can achieve a top-line-only indent a couple ways.

  1. Custom HTML - Add custom HTML block, then add paragraph tags and include the space-characters "&nbsp;" or "&ensp;" or "&emsp;" which are rendered as different levels of spacing. <p>&emsp; This is the indented first line only.</p>
  2. Custom CSS - EITHER Switching to code editor and adding <p style="text-indent: 50px;"> to your intended paragraph. OR adding in your Custom CSS section p { text-indent: 1em; } (which will indent ALL paragraph blocks across your site - so, easy to implement and update to a different value, but a pain to have it apply to all paragraph blocks everywhere). Alternative is to create a custom class like "book-styling-paragraph" and then label all paragraphs you want indented like this with that class name.

References

FUTURE

A slider in the block menu of the paragraph block you can easily toggle a first-line-only indent.

Design considerations

  • A little clumsy to have to toggle each paragraph you want indented, especially if you're writing a long piece (but better option than indenting all p blocks across your website)
  • A way to highlight multiple paragraphs and toggling it in one place changes all of the blocks
  • A custom shortcut keystroke which acts like a tab in Word, but in fact toggles this menu option in the paragraph block menu (ie: SHIFT-tab [toggles indent menu option] "Hello world...")
  • When FSE editing comes around, you could change one specific parameter of the styling of that first-line-only indent making it bigger or smaller

References

@skorasaurus
Copy link
Member

skorasaurus commented Sep 9, 2021

related, previous discussion about this: #28524 and #14554

@jordesign
Copy link
Contributor

Closing this as it has been long dormant, and also a duplicate of #37462

@jordesign jordesign closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2023
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 Needs Decision Needs a decision to be actionable or relevant [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants