Skip to content

Commit

Permalink
Health Check - Text alternatives for icons missing (In Groups) (#6453)
Browse files Browse the repository at this point in the history
  • Loading branch information
BatJan authored and nul800sebastiaan committed Sep 26, 2019
1 parent 6beb844 commit d67a891
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@
/* DETAILS */

.umb-healthcheck-back-link {
font-weight: bold;
background: transparent;
border: 0 none;
padding: 0;
font-weight: bold;
color: @black;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ <h3 class="bold">Health Check</h3>

<umb-editor-sub-header>
<umb-editor-sub-header-content-left>
<a class="umb-healthcheck-back-link" href="" ng-click="vm.setViewState('list');">&larr; Back to overview</a>
<button type="button" class="umb-healthcheck-back-link" ng-click="vm.setViewState('list');">
<span aria-hidden="true">&larr;</span> Back to overview
</button>
</umb-editor-sub-header-content-left>
</umb-editor-sub-header>

Expand Down Expand Up @@ -111,7 +113,7 @@ <h3 class="bold">Health Check</h3>

<div class="umb-panel-group__details-status" ng-repeat="status in check.status">

<div class="umb-panel-group__details-status-icon-container">
<div class="umb-panel-group__details-status-icon-container" aria-hidden="true">
<i class="umb-healthcheck-status-icon icon-check color-green" ng-if="status.resultType === 0"></i>
<i class="umb-healthcheck-status-icon icon-alert icon-alert color-yellow" ng-if="status.resultType === 1"></i>
<i class="umb-healthcheck-status-icon icon-delete icon-delete color-red" ng-if="status.resultType === 2"></i>
Expand All @@ -121,6 +123,18 @@ <h3 class="bold">Health Check</h3>
<div class="umb-panel-group__details-status-content">

<div class="umb-panel-group__details-status-text">
<span class="sr-only" ng-if="status.resultType === 0">
<localize key="visuallyHiddenTexts_checkPassed">Check passed</localize>:
</span>
<span class="sr-only" ng-if="status.resultType === 1">
<localize key="visuallyHiddenTexts_warning">warning</localize>:
</span>
<span class="sr-only" ng-if="status.resultType === 2">
<localize key="visuallyHiddenTexts_checkFailed">Check failed</localize>:
</span>
<span class="sr-only" ng-if="status.resultType === 3">
<localize key="visuallyHiddenTexts_suggestion">suggestion</localize>:
</span>
<div ng-bind-html="status.message"></div>
<div ng-if="status.description" ng-bind-html="status.description"></div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/Umbraco.Web.UI/Umbraco/config/lang/da.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1626,5 +1626,7 @@ Mange hilsner fra Umbraco robotten
<key alias="warning">advarsel</key>
<key alias="failed">fejlet</key>
<key alias="suggestion">forslag</key>
<key alias="checkPassed">Test bestået</key>
<key alias="checkFailed">Test fejlet</key>
</area>
</language>
4 changes: 3 additions & 1 deletion src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2143,6 +2143,8 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="passed">passed</key>
<key alias="warning">warning</key>
<key alias="failed">failed</key>
<key alias="suggestion">suggestion</key>
<key alias="suggestion">suggestion</key>
<key alias="checkPassed">Check passed</key>
<key alias="checkFailed">Check failed</key>
</area>
</language>
2 changes: 2 additions & 0 deletions src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2158,5 +2158,7 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="warning">warning</key>
<key alias="failed">failed</key>
<key alias="suggestion">suggestion</key>
<key alias="checkPassed">Check passed</key>
<key alias="checkFailed">Check failed</key>
</area>
</language>

0 comments on commit d67a891

Please sign in to comment.