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:
David Taylor 2022-10-27 13:07:24 +01:00 committed by GitHub
parent 4b6a5f08fa
commit 6388637931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}}