• The style.css on this theme suppresses proper display of the type attribute on ordered list, eg

    <ol?type=”a”>
    ??<li>Coffee</li>
    ??<li>Tea</li>
    ??<li>Milk</li>
    </ol>

    does not display as an alphabetical list, can this be fixed?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi @shawfactor – thanks for reporting this. It seems to be an issue in several other default themes as well, including Twenty Twenty and Twenty Twenty-One.

    I will report this in Core Trac, but since there won’t be any ETA on a fix, I’d suggest using a CSS a workaround in the meantime.

    If you’re using a List block, add a custom class to the ones you’d like to be alphabetical, such as alpha.

    Then, add the following under Appearance > Customize > Additional CSS:

    /* Ordered lists - alphabetical */
    ol.alpha {
      list-style-type: lower-alpha;
    }

    If you’d like to change all ordered lists to alphabetical (instead of just specific ones) you can skip the step of adding a custom class, and just add this to the Custom CSS editor:

    /* Ordered lists - alphabetical */
    ol {
      list-style-type: lower-alpha;
    }

    If you’re adding your lists in another way, let me know and I’ll try to find you another workaround. If you can provide a link to a post or page on your site with an ordered list, that would also be helpful. Thanks!

    Moderator Kathryn Presner

    (@zoonini)

    Here’s a second workaround which doesn’t require custom CSS.

    Instead of adding type="a" to your ordered list, try adding inline CSS, so your element would look like this:

    <ol style="list-style-type: lower-alpha">

    In my testing, this had the same effect in Twenty Fifteen as going the custom CSS route, and should look like this:

    Here’s the Trac ticket I made to report the issue:

    https://core.trac.www.ads-software.com/ticket/57920

    Thread Starter shawfactor

    (@shawfactor)

    I’ve a dev so writing css to fix this is not an issue, I raise it as it is a serious bug.

    Anyway can you please follow through and try to prioritise this fix? I ask as no good theme should be overriding key html behaviour like this (and all the core themes should be examples of good themes)

    Moderator Kathryn Presner

    (@zoonini)

    Hi @shawfactor – it will be up to the core developers to determine how to prioritize fixing this issue in the ticket I created on your behalf. Feel free to add any additional thoughts directly in Trac. Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ordered list type attribute not displayed properly’ is closed to new replies.