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

Separate configuration for styles in ol and ul list properties #16614

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

illia-stv
Copy link
Contributor

Suggested merge commit message (convention)

Feature (List): Extend ListPropertiesStyleConfig interface with excluding list type option. Closes #15554.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@illia-stv illia-stv self-assigned this Jun 26, 2024
*
* @default []
*/
exclude?: Array<'ul' | 'ol'>;
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Why exclude? Is opt-out really preferred over opt-in?
  2. I know using 'ul' and 'ol' was suggested in ticket comment, but those lists are named 'bulleted' and 'numbered'.
  3. How above points play with multi-level lists? Does both make sense if this plugin is also present?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. I think opt-out would be more preferable, because of keeping backward compatibility, if users want to have styles for both types of list they need to update their configs.
  2. Sure, I think it's a good idea with using bulleted and numbered list 🙂.
  3. Multi level list it's a separate feature and AFAIK multi level list doesn't have any styles at the moment, then I didn't consider this type of list.

@illia-stv illia-stv requested a review from arkflpc June 28, 2024 09:23
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

Successfully merging this pull request may close these issues.

Separate configuration for styles in ol and ul list properties
2 participants