Problem/Motivation
Claro's elements.css contains this:
ol {
margin: 0.25em 0 0.25em 2em; /* LTR */
padding: 0;
list-style-type: decimal;
}
Steps to reproduce
This interferes with https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol#attr-type — it means that even if you create <ol type="A"><li>first</li><li>second</li></ol>, in Claro this markup will be rendered with decimals instead of capital letters.
This is especially bad when using a text editor that does not use iframes. CKEditor 4 rendered its markup in an iframe. CKEditor 5 does not.
Discovered in #3274651: Impossible to enable <ol type> or <ul type> with GHS: switch to List's successor, DocumentList.
Proposed resolution
Omit list-style-type: decimal;, or change specific selector specificity.
Remaining tasks
TBD
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
None.
| Comment | File | Size | Author |
|---|
Issue fork drupal-3282598
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
amit.mall commentedvalid issue.
Removed from core/themes/claro/css/base/elements.css
Comment #5
amit.mall commentedComment #6
nod_patch needs to be cleaned up to pass linting (remove extra space at the end of the line)
Comment #7
lalitware commentedRemoved extra space after padding property.
Comment #8
nod_almost there! The change needs to happen in the
elements.pcss.cssfile.Before making your patch you need to run
yarn buildto generate theelements.cssfile automatically. See https://www.drupal.org/about/core/policies/core-change-policies/frontend... for details :)Comment #9
pradhumanjain2311 commentedTry to fix patch #7 as @nod_ suggested.
please review.
Comment #10
smustgrave commentedLooks like change requested in #8 was addressed. And this seems like this could be a problem for ckeditor5
Comment #15
gauravvvv commentedCreated MR for same, as the patch #9, no longer applies.
Comment #16
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #18
gauravvvv commentedComment #20
smustgrave commentedChange appears simple enough.
Comment #22
nod_Committed 91e3259 and pushed to 11.x. Thanks!
Comment #23
nod_