Skip to content

Commit

Permalink
List correction in Links Group (#682)
Browse files Browse the repository at this point in the history
Transforming the <nav> into a list
  • Loading branch information
xentenza authored Aug 23, 2023
1 parent b642724 commit cf63e74
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
16 changes: 6 additions & 10 deletions assets/components/molecules/links-group/links-group-teaser.twig
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<div class="links-group links-group-teaser">
<h5 id="links-group-title"><a class="link-pretty" href="#">Vue d’ensemble de l’EPFL</a></h5>
<nav
class="nav flex-column flex-wrap align-items-start"
role="navigation"
aria-labelledby="links-group-title"
>
<a class="nav-link link-pretty" href="#">Chiffres clés</a>
<a class="nav-link link-pretty" href="#">3 missions de l’EPFL</a>
<a class="nav-link link-pretty" href="#">Organigrammes de la direction</a>
<a class="nav-link link-pretty" href="#">Réalisations importantes de l’EPFL</a>
</nav>
<ul class="list-unstyled">
<li><a class="link-pretty" href="#">Chiffres clés</a></li>
<li><a class="link-pretty" href="#">3 missions de l’EPFL</li>
<li><a class="link-pretty" href="#">Organigrammes de la direction</li>
<li><a class="link-pretty" href="#">Réalisations importantes de l’EPFL</li>
</ul>
</div>
2 changes: 1 addition & 1 deletion assets/components/molecules/links-group/links-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
background: $white;
border: 1px solid $gray-200;

.nav-link {
.nav-link, li {
padding: 0;
margin-bottom: 0.8rem;
}
Expand Down
20 changes: 8 additions & 12 deletions assets/components/molecules/links-group/links-group.twig
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<div class="links-group">
<h5 id="links-group-title">Plus d'informations sur la faculté</h5>
<nav
class="nav flex-column flex-wrap align-items-start"
role="navigation"
aria-labelledby="links-group-title"
>
<a class="nav-link link-pretty" href="#">Tous les laboratoires de la faculté</a>
<a class="nav-link link-pretty" href="#">Liste des professeurs de la faculté</a>
<a class="nav-link link-pretty" href="#">Postes à pourvoir à l'ENAC</a>
<a class="nav-link link-pretty" href="#">Services internes</a>
<a class="nav-link link-pretty" href="#">L'organisation de la faculté</a>
<a class="nav-link link-pretty" href="#">Chaires de l'ENAC</a>
</nav>
<ul class="list-unstyled">
<li><a class="link-pretty" href="#">Tous les laboratoires de la faculté</a></li>
<li><a class="link-pretty" href="#">Liste des professeurs de la faculté</a></li>
<li><a class="link-pretty" href="#">Postes à pourvoir à l'ENAC</a></li>
<li><a class="link-pretty" href="#">Services internes</a></li>
<li><a class="link-pretty" href="#">L'organisation de la faculté</a></li>
<li><a class="link-pretty" href="#">Chaires de l'ENAC</a></li>
</ul>
</div>

0 comments on commit cf63e74

Please sign in to comment.