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

Font styles for list bullets/numbers #5752

Open
pshurygin opened this issue Nov 19, 2019 · 10 comments
Open

Font styles for list bullets/numbers #5752

pshurygin opened this issue Nov 19, 2019 · 10 comments
Labels
package:list squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@pshurygin
Copy link

📝 Font styles for list bullets/numbers

At this moment there is no way to change list numbering or bullets color/font-style/font-weight etc. So when the user changes styles of text within list item (like color), the color of the numbers/bullets does not change(and there is no other way to change it).

This problem has been very frustrating for our users. I see several possible solutions for this:

  1. Add some functionality to Font plugins to recognize lists in selection and apply styles to them.
  2. Add some functionality to List plugins to allow setting font color/size etc in a new UI.
  3. Add a new feature with a new separate interface to apply list font styles

I would say that the preferred approach is 1. but i guess it could be complicated to implement.
Also, in the meantime if there are no plans to implement this in the near future i would appreciate some advice on how to approach this problem, so that I could probably implement a new plugin for this on my own.


If you'd like to see this feature implemented, add a 👍 reaction to this post.

@pshurygin pshurygin added the type:feature This issue reports a feature request (an idea for a new functionality or a missing option). label Nov 19, 2019
@Reinmar
Copy link
Member

Reinmar commented Nov 19, 2019

Do you expect that people should be able to set the style themselves? Or should it be inherited from the following text? I think that some editors do the latter.

@Reinmar Reinmar added this to the backlog milestone Nov 19, 2019
@pshurygin
Copy link
Author

pshurygin commented Nov 19, 2019

Ideally styles should be inherited from text, but the problem here is that text inside list item may consist of multiple parts with different styles(first word is white, second is black), so it's not exactly clear on what style to inherit.

We could probably always use the first found child styles, and it would be good enough for the most cases.

Setting styles by user is less obvious and user-friendly approach, but if it's more feasible to implement it's also an option which is better than nothing.

@lslowikowska lslowikowska added the support:1 An issue reported by a commercially licensed client. label Dec 30, 2019
@ClaudiaDV
Copy link

this issue was solved or exist some plugin to fix that? I have the same error, I want to change the styles list from style text

@radhikaa90
Copy link

radhikaa90 commented Nov 23, 2020

+1 - Same for me. Any workaround is appreciated too.

@lslowikowska lslowikowska added support:2 An issue reported by a commercially licensed client. and removed support:1 An issue reported by a commercially licensed client. labels May 7, 2021
@Reinmar Reinmar added the squad:core Issue to be handled by the Core team. label Nov 3, 2021
@pomek pomek removed this from the backlog milestone Feb 21, 2022
@Technopark95
Copy link

Any update on this, still not being able to color the Li Bullet in Ckeditor 37.0.1

@secret-knight
Copy link

This would be great to have, users of the product I work on are specifically asking for this functionality. At least for now, an alternative to including it out of the box in newer versions would be a snippet that we can use directly in the onReady function. This would much appreciated if doable

@horvathpatrik
Copy link

+1 Any progress on this?

@Witoso
Copy link
Member

Witoso commented Jan 29, 2024

We were discussing this quite recently, and from the technical and UI perspective this will be very challenging. While GDoc, and Word operate on pure canvas elements, we have to accept the semantics of HTML and default styles. Some ideas appeared to dynamically pull content styles of lists' children but it would require developing some heuristics for multiple styles. A PoC from @pszczesniak: https://codepen.io/piotrekszczesniak/pen/xxBXbEN

@spacelist-ca
Copy link

Commenting to bring more attention for this issue :)

This is especially problematic with sizing. There are cases where the number for the list item is one font size and the list item itself is another size.

Any more insight into workarounds to always have them be the same? It seems like a rare edge case someone will want to have the document list number be different than the items font itself. no?

@spacelist-ca
Copy link

spacelist-ca commented Apr 30, 2024

@Witoso Any updates? If we wanted to enforce that the numbered list styling to always match that of the numbered list item to 'inherit' that of the list item content, is there a known method for that so we avoid having conflict with the default styles? This is a pretty huge flaw that should be addresses as a priority IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:list squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests