Skip to content

Commit

Permalink
Make links inside figure accessible for keyboard
Browse files Browse the repository at this point in the history
For unknown reasons links inside <figure> elemenent are not accessible
in Firefox for keyboard users.
  • Loading branch information
Phu2 committed Sep 18, 2023
1 parent 8036502 commit 2a3d19f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ <h1>@json.get("name").get(Application.currentLang()).asText()<small> &mdash; @js
<p>@Html(Messages.get("index.development.text", "https://github.com/hbz/lobid-organisations#about", "https://github.com/hbz/lobid-organisations/issues/new", "https://github.com/hbz/lobid-organisations/graphs/contributors"))</p>
</div>
<div class="col-md-5">
<figure>@defining(routes.Application.get(item.get("isil").get("value").asText(), "")) { orgLink =>
<div id="figure" role="figure" aria-labelledby="caption">@defining(routes.Application.get(item.get("isil").get("value").asText(), "")) { orgLink =>
<a href='@orgLink'><img id="index-image" src='https://lobid.org/[email protected]("image").get("value").asText().replace("http:","https:")' title='@Messages.get("index.image.info")' alt="@label"/></a>
<figcaption><a href='@orgLink'>@label</a><br/><small>(@Messages.get("index.image.source") @Html(attribution))</small></figcaption>
}</figure>
<p id="caption"><a href='@orgLink'>@label</a><br/><small>(@Messages.get("index.image.source") @Html(attribution))</small></p>
}</div>
</div>
</div>
}
5 changes: 5 additions & 0 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,9 @@ h6 .small,
.h5 .small,
.h6 .small {
color: #666;
}

#figure {
float: right;
text-align: right;
}

0 comments on commit 2a3d19f

Please sign in to comment.