Skip to content

SD-2526 - feat: implement 2 extra types of bullet lists (square, circle)#2857

Open
chittolinag wants to merge 4 commits intomainfrom
feat/SD-2526
Open

SD-2526 - feat: implement 2 extra types of bullet lists (square, circle)#2857
chittolinag wants to merge 4 commits intomainfrom
feat/SD-2526

Conversation

@chittolinag
Copy link
Copy Markdown
Contributor

@chittolinag chittolinag commented Apr 17, 2026

Introducing two new types of bullet lists: square (β–ͺ) and circle (β—¦).

Even though we supported rendering the styles when opening documents from Word, the user couldn't start a new list using square or circle.

This PR introduces a dropdown that allows the user to do so.

Screenshot 2026-04-17 at 14 45 20

@linear
Copy link
Copy Markdown

linear bot commented Apr 17, 2026

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.

πŸ“’ Thoughts on this report? Let us know!

@chittolinag chittolinag marked this pull request as ready for review April 17, 2026 18:23
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce505e4c06

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

role="menuitem"
:aria-label="button.ariaLabel"
ref="buttonRefs"
@keydown.prevent="(event) => handleKeyDown(event, index)"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Allow Tab key to escape bullet style menu

The @keydown.prevent modifier on each bullet-style option prevents default behavior for all keys, not just the handled arrows/Enter. In practice, once focus is inside this menu, pressing Tab cannot move focus to the next control, which creates a keyboard trap for keyboard-only users when the dropdown is open. This should only prevent default for keys you explicitly handle.

Useful? React with πŸ‘Β / πŸ‘Ž.

listRendering: {
keepOnSplit: false,
renderDOM: ({ listRendering }) => {
console.log('listRendering', listRendering);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove listRendering debug log from render path

This console.log runs inside renderDOM for paragraph attributes, so it executes repeatedly during normal editing and state updates. On real documents this will spam logs, slow down interactive rendering, and expose list metadata in production consoles, which is typically unintended for a hot render path.

Useful? React with πŸ‘Β / πŸ‘Ž.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants