FIX: Move group-box group name from class to data attribute (#18773)
Having the group name in the `class` attribute can cause a clash with 'real' CSS classes. Putting it in a data attribute is much safer, and can still be targetted via CSS if desired.
This commit is contained in:
parent
4b6a5f08fa
commit
6388637931
|
@ -22,7 +22,7 @@
|
|||
<div class="container">
|
||||
<div class="groups-boxes">
|
||||
{{#each this.groups as |group|}}
|
||||
<LinkTo @route="group.members" @model={{group.name}} class={{concat "group-box " group.name}}>
|
||||
<LinkTo @route="group.members" @model={{group.name}} class="group-box" data-group-name={{group.name}}>
|
||||
<div class="group-box-inner">
|
||||
<div class="group-info-wrapper">
|
||||
{{#if group.flair_url}}
|
||||
|
|
Loading…
Reference in New Issue