cdig / cd-module

A Framework for LBS Lessons
0 stars 1 forks source link

Don't do a custom <ol> style by default #96

Open ivanreese opened 6 years ago

ivanreese commented 6 years ago

In v4, the way we style <ol> is by creating a custom counter, hiding the browser default list item number, and inserting our own numbering with ::before. That lets us style the heck out of the list item numbers. But it breaks some browser default goodness.

For instance, using the start attribute on the <ol> doesn't work:

<ol start="3">
  <li>...

Instead, we should probably leave the default <ol> style mostly intact, and create our nicer custom style such that it can be used opt-in.