Skip to content

Commit

Permalink
Accessibility: rewrite tags badges semantically in profile header
Browse files Browse the repository at this point in the history
to fix the 'Write lists or groups of links semantically' issue reported by silktide.
  • Loading branch information
betsyecastro committed Mar 13, 2024
1 parent 7712fb6 commit ef093b4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
7 changes: 7 additions & 0 deletions public/css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/js/app.js": "/js/app.js?id=ea6bbec3ef43683fe4b33708fb0b651f",
"/js/manifest.js": "/js/manifest.js?id=dc9ead3d7857b522d7de22d75063453c",
"/css/app.css": "/css/app.css?id=cad69eef68bd3363be178962528faa9e",
"/css/app.css": "/css/app.css?id=6e7d6166f46f41af71523d7f72f9a1f5",
"/js/vendor.js": "/js/vendor.js?id=ff8caa3d91b2371810b378ee6ef53038"
}
11 changes: 11 additions & 0 deletions resources/assets/sass/_profile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
font-size: 1.05rem;
margin-top: 1.7rem;
}

.tags {
ul {
display: inline;
padding-inline-start: 0px;
}

li {
display: inline;
}
}
}

.profile_photo {
Expand Down
8 changes: 5 additions & 3 deletions resources/views/tags/badge.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@foreach($tags as $tag)
<a class="badge badge-primary tags-badge" href="{{ route('profiles.index', ['search' => $tag->name]) }}">{{ $tag->name }}</a>
@endforeach
<ul>
@foreach($tags as $tag)
<li><a class="badge badge-primary tags-badge" href="{{ route('profiles.index', ['search' => $tag->name]) }}">{{ $tag->name }}</a></li>
@endforeach
</ul>

0 comments on commit ef093b4

Please sign in to comment.