iommirocks / iommi

Your first pick for a django power cord
http://iommi.rocks
BSD 3-Clause "New" or "Revised" License
804 stars 51 forks source link

[Bug] Iommi framework unable to parse styles with name containing 2 underscores "__" #555

Closed akhileshThapliyal closed 3 months ago

akhileshThapliyal commented 3 months ago

When I use a class with a name containing 2 underscores "" the framework can't parse the class name. For instance, the below class values don't work dm-paginationitem, dm-paginationitem and dm-paginationlink

Styles

Paginator__attrs__class={
    'dm-page': True
},
Paginator__container__attrs__class={
    'dm-pagination d-flex': True
},
Paginator__item__attrs__class={
    'dm-pagination__item': True
},
Paginator__active_item__attrs__class={
    'dm-pagination__item': True
},
Paginator__link__attrs__class={
    'dm-pagination__link': True
}

DOM

image

boxed commented 3 months ago

Fixed by https://github.com/iommirocks/iommi/pull/559