Skip to content

Commit

Permalink
Change go back < to icon and add nav (#532)
Browse files Browse the repository at this point in the history
- Label the nav as secondary
  • Loading branch information
coltborg committed Mar 14, 2024
1 parent be983e8 commit 1040d27
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -731,3 +731,13 @@ body,
display: block;
}
}

.underline {
text-decoration: underline;
}

.go-back-link {
text-decoration: none;
display: inline-flex;
align-items: center;
}
1 change: 1 addition & 0 deletions src/main/resources/messages-form-flow.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ general.year-format=yyyy
general.edit=edit
general.delete=delete
general.go-back=Go Back
general.go-back-region=Secondary
general.inputs.yes=Yes
general.inputs.no=No
general.inputs.continue=Continue
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/messages-form-flow_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ general.year-format=aaaa
general.edit=editar
general.delete=borrar
general.go-back=Regresa
general.go-back-region=Secundario
general.inputs.yes=
general.inputs.no=No
general.inputs.continue=Continuar
Expand Down
14 changes: 7 additions & 7 deletions src/main/resources/templates/fragments/goBack.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div th:fragment="goBackLink" class="form-width">
<a th:text="'&lt; ' + #{general.go-back}"
id="back-link"
class="toolbar__left"
href="#"
onclick="window.history.back(); return false;"></a>
</div>
<nav th:fragment="goBackLink" class="form-width" th:aria-label="#{general.go-back-region}">
<a id="back-link" class="toolbar__left go-back-link" href="#"
onclick="window.history.back(); return false;">
<i class="icon-navigate_before" aria-hidden="true"></i>
<span class="underline" th:text="#{general.go-back}"></span>
</a>
</nav>

0 comments on commit 1040d27

Please sign in to comment.