Accessibility: Unable to navigate to close 'X' icon with keyboa… (#5964)

This commit is contained in:
Jan Skovgaard
2019-08-14 17:29:26 +02:00
committed by Sebastiaan Janssen
parent 8d0df6cec3
commit 6bd647f8c6
2 changed files with 18 additions and 12 deletions

View File

@@ -4,22 +4,22 @@
<div class="umb-tour__pulse"></div>
<div class="umb-tour__popover shadow-depth-2" ng-class="{'umb-tour__popover--l': model.currentStep.type === 'intro' || model.currentStepIndex === model.steps.length}">
<div ng-if="!configuredView && !elementNotFound">
<!-- Regular steps -->
<umb-tour-step ng-if="model.currentStepIndex < model.steps.length" on-close="model.endTour()">
<umb-tour-step-header
title="model.currentStep.title">
</umb-tour-step-header>
<umb-tour-step-content
content="model.currentStep.content">
</umb-tour-step-content>
<umb-tour-step-footer>
<div class="flex justify-between items-center">
<div>
@@ -27,9 +27,11 @@
current-step="model.currentStepIndex + 1"
total-steps="model.steps.length">
</umb-tour-step-counter>
<div ng-if="model.allowDisable && model.currentStep.type === 'intro'" style="font-size: 13px;"><a href="" class="underline" ng-click="model.disableTour()">Don't show this tour again</a></div>
<div ng-if="model.allowDisable && model.currentStep.type === 'intro'">
<button type="button" class="underline" ng-click="model.disableTour()" style="font-size: 13px; background: transparent; border: none; padding: 0;" prevent-default>Don't show this tour again</button>
</div>
</div>
<div ng-if="model.currentStep.type !== 'intro'">
<umb-button size="xs" ng-if="!model.currentStep.event" button-style="action" type="button" action="model.nextStep()" label="Next"></umb-button>
</div>
@@ -40,7 +42,7 @@
</div>
</umb-tour-step-footer>
</umb-tour-step>
<!-- Outro step -->
@@ -64,7 +66,7 @@
<!-- Custom step view -->
<div ng-if="configuredView && !loadingStep && !elementNotFound" ng-include="configuredView"></div>
<!-- Dom element not found error -->
<div ng-if="elementNotFound && !loadingStep">
<umb-tour-step class="tc">
@@ -83,4 +85,4 @@
</div>
</div>
</div>

View File

@@ -2,9 +2,13 @@
<div ng-if="hideClose !== true">
<button class="icon-wrong umb-tour-step__close" ng-click="close()"></button>
<button class="icon-wrong umb-tour-step__close" ng-click="close()">
<span class="sr-only">
<localize key="general_close">Close</localize>
</span>
</button>
</div>
<div ng-transclude></div>
</div>
</div>