Skip to content

SD-2527 - feat: implement new types of ordered lists#2873

Open
chittolinag wants to merge 7 commits intomainfrom
feat/SD-2527
Open

SD-2527 - feat: implement new types of ordered lists#2873
chittolinag wants to merge 7 commits intomainfrom
feat/SD-2527

Conversation

@chittolinag
Copy link
Copy Markdown
Contributor

@chittolinag chittolinag commented Apr 20, 2026

Introducing new types of ordered lists:

  1. number with bracket
  2. uppercase roman
  3. uppercase alpha
  4. lowercase roman
  5. lowercase alpha
  6. alpha with bracket

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

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

Note

This PR depends on #2857. Let's merge the other one first.

Screenshot 2026-04-20 at 15 59 36

@linear
Copy link
Copy Markdown

linear bot commented Apr 20, 2026

@chittolinag chittolinag changed the title SD-2527 - Implement new types of ordered lists SD-2527 - feat: implement new types of ordered lists Apr 20, 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 20, 2026 19:43
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: 038936be5a

ℹ️ 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".

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 per-paragraph debug logging in renderDOM

The new console.log('listRendering', listRendering) runs inside paragraph renderDOM, so it executes for every paragraph render/update in normal editing. This will flood production consoles and adds avoidable overhead on large documents, making real diagnostics harder and slowing interactive operations.

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

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.

P2 Badge Allow Tab to leave list-style dropdown options

Using @keydown.prevent on each style button prevents default behavior for all keys, but the handler only processes arrow keys and Enter. When a user tabs onto these options, pressing Tab is suppressed, so keyboard users cannot advance focus out of the dropdown via normal tab navigation (same pattern is used in the numbered variant), creating an accessibility and usability regression.

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