You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Margin of ordered list items is inconsistent across browsers.
You can repro it in the demo editor on https://draftjs.org/
Chrome:
Firefox:
You can see that OL and UL items are not aligned. In Chrome in does not look too much off, but in Firefox it becomes more noticeable.
I suspect this is happening because of the following css:
What is the expected behavior?
I would expect OL and UL to be aligned in all browsers like
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Affected version of Draft: 0.10.5. You can repro in any version of the browser. I was using Chrome 71.0.3578.98 (Official Build) (64-bit) and Firefox 64.0.2 (64-bit)
The text was updated successfully, but these errors were encountered:
Nice catch! It's indeed inconsistent between browsers, but it looks good to me in Chrome (list prefix right-aligned).
In your proposal the list prefixes seem to be left-aligned, which might look ok with a 1. but would quickly break down with e.g. 10. (1 having one of the smallest glyphs of all numbers).
Yeah, making them left-aligned is not the best option. How about centering them instead of prioritizing the consistent spacing between bullets and text (I think right now it looks right aligned)?
To me it looks better right-aligned, as that's how browsers render them by default. but let’s see what other people / the maintainers of Draft.js think. If it was right-aligned, the spacing between the . and the text would be consistent.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Margin of ordered list items is inconsistent across browsers.
You can repro it in the demo editor on https://draftjs.org/
Chrome:
Firefox:
You can see that OL and UL items are not aligned. In Chrome in does not look too much off, but in Firefox it becomes more noticeable.
I suspect this is happening because of the following css:
What is the expected behavior?
I would expect OL and UL to be aligned in all browsers like
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Affected version of Draft: 0.10.5. You can repro in any version of the browser. I was using Chrome 71.0.3578.98 (Official Build) (64-bit) and Firefox 64.0.2 (64-bit)
The text was updated successfully, but these errors were encountered: