Skip to content

Commit

Permalink
fix: sémantique du code est respectée (#403)
Browse files Browse the repository at this point in the history
* fix: change button and link for accessibilite

* fix: reverse data config

* fix: use span instead of bold beacon
  • Loading branch information
abelkhay committed Dec 19, 2023
1 parent 74d15a2 commit 4c75c85
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@
</button>
</div>
<div class="col">
<button
<a
role="button"
type="button"
class="btn btn-tile px-md-0 py-md-4 p-2 d-flex flex-md-column flex-row"
(click)="sendByEmail.emit($event)">
<span class="ri-circled bg-primary text-light fw-normal">
<span role="img" class="ri-mail-send-line" aria-hidden="true"></span>
</span>
<span class="mt-md-2 mb-md-0 ms-md-0 ms-2 fw-bold">Envoyer par mail</span>
</button>
</a>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
Webinaires : Mettre à jour vos données
</span>
</a>
<button slot="footer" type="submit" form="erreurGroup" class="btn btn-primary">
<button role="link" slot="footer" type="submit" form="erreurGroup" class="btn btn-primary">
<span role="img" class="ri-mail-send-line" aria-hidden="true"></span>
Signaler l'erreur
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
</div>
</div>
</form>
<button slot="footer" type="submit" form="sendByEmailForm" class="btn btn-primary">Envoyer</button>
<button role="link" slot="footer" type="submit" form="sendByEmailForm" class="btn btn-primary">
<i class="ri-mail-send-line" aria-hidden="true"></i>
Envoyer
</button>
</app-modal>
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h1 class="h2 text-center fw-bold mt-sm-5 mt-3">
</fieldset>
</form>
<div class="text-center mt-4">
<a class="btn btn-primary mx-3" [routerLink]="['..', 'disponibilite']" queryParamsHandling="preserve">
<a role="button" class="btn btn-primary mx-3" [routerLink]="['..', 'disponibilite']" queryParamsHandling="preserve">
Suivant
<span role="img" class="ri-arrow-right-s-line" aria-hidden="true"></span>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h1 class="h2 text-center fw-bold mt-sm-5 mt-3">
</div>
</form>
<div class="text-center mt-4">
<a class="btn btn-primary mx-3" [routerLink]="['..', 'accessibilite']" queryParamsHandling="preserve">
<a role="button" class="btn btn-primary mx-3" [routerLink]="['..', 'accessibilite']" queryParamsHandling="preserve">
Suivant
<span role="img" class="ri-arrow-right-s-line" aria-hidden="true"></span>
</a>
Expand Down

0 comments on commit 4c75c85

Please sign in to comment.