I have a rich text editor built using draftjs. I implemented the functions for changing the font size, font family, and color of the text in the editor. I also implemented the functionality of adding unordered and ordered list items.
The issue is whenever I add an unordered or ordered list to a block of text, the font size of the bullet is always fixed and it does not correspond to the size of the text in that block.
For example the bullet size is always 10px even if the text has a font size of 20px or 40px or 10px. So, is there any way to make the bullet size the same as the size of the text in that block.
Google slides exhibit the correct behaviour, like the font size of the bullet changes depending upon the size of the text in that block.
So can anyone help me in finding a solution for this issue where I can change the style of the bullet depending upon the style of the text in that block.

Here is some workaround working for me: completely remove the base bullets and replace them using draftjs style of the first character of each li. Those are then rendered by the blockRendererFn callback of the Editor:
First, remove the normal list styling and prepare yours:
Then, simply adapt this code for your needs (you may add whatever bullets/levels you need in the baseBullets constant:
And, if you don't have yours, the functions which retrieve the HTML style at a given position of draftjs content, to also adapt depending on your needs: