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

Show Border of New Block When First Created in Editor #180

Open
SwapnilChand opened this issue Dec 5, 2024 · 3 comments
Open

Show Border of New Block When First Created in Editor #180

SwapnilChand opened this issue Dec 5, 2024 · 3 comments

Comments

@SwapnilChand
Copy link
Contributor

Description:

When a new block is created in the documentation editor, there is currently no visual feedback indicating its presence, especially when the block is empty. This makes it challenging for users to identify newly created blocks.

Proposed Solution:

Implement a border around newly created or empty blocks to provide immediate visual feedback. The border should be hidden once the block contains content, ensuring that users can easily identify new additions without cluttering the interface.

Steps to Reproduce:

  1. Open the documentation editor.
  2. Create a new block (leave it empty).
  3. Observe that there is no border or visual indication of the new block's presence.

Expected Behavior:

  • Upon creating a new or empty block, a border should appear around it, making it easily identifiable.
  • Once the block is filled with content, the border should disappear.

Additional Information:

This issue has been noted in other contexts, such as the visibility of borders in empty group blocks, which are intended for decorative purposes but lack clear visual feedback in the front-end display. Implementing this feature could enhance user experience significantly by providing clear visual cues during block creation while maintaining a clean interface as content is added.

@sauravpanda
Copy link
Member

@shreyashkgupta whats your thoughts on this, does it make sense?

@shreyashkgupta
Copy link
Contributor

Yeah, borders is one way. I think the main issue is its very hard to see a new block is added or not.

Another more subtle option could be having a placeholder text. Or having a subtle background color for new blocks.
I think placeholder text might give a more clean look to the editor and still solve the issue

@SwapnilChand
Copy link
Contributor Author

SwapnilChand commented Dec 18, 2024

Placeholder is the best option, i agree, and just having the cursor autofocus and blink in this new block should do it.
Though still showing all the placeholders might not be right, I think autofocus + placeholder only when the user focuses on the block would be best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants