Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only set .onboarding-focus class when onboarding is enabled #18

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

kogre
Copy link

@kogre kogre commented Apr 14, 2016

Whenever the onboarding is not (yet) active, the onboarding-focus class is set on the element of the first step. This might conflict with some existing z-index attributes, yielding unwanted behavior (as it did in my case).

This PR runs the update logic on changes to index as well as enabled, and only sets the onboarding-focus class on elements when the onboarding is active.

txbm and others added 15 commits July 12, 2014 15:27
*This fix will allow undefined index handling...i.e. when onboardingSteps load
asynchronously and scope index is not yet available.

*Example:

*Say you have a factory, OnboardingFactory, that loads the steps.

		$scope.onboardingEnabled = false;

		OnboardingFactory.getOnboardingSteps().then(function(steps){
			$scope.onboardingSteps = steps;
			$scope.onboardingEnabled = true;
			$scope.onboardingIndex = 0;
		});

*Check index watch newval is undefined instead of === null to allow for this.
*Adjust step count to account for steps deferred initialization

*This fix will allow undefined index handling...i.e. when onboardingSteps load
asynchronously and scope index is not yet available.

*Example:

*Say you have a factory, OnboardingFactory, that loads the steps.

    $scope.onboardingEnabled = false;

    OnboardingFactory.getOnboardingSteps().then(function(steps){
        $scope.onboardingSteps = steps;
        $scope.onboardingEnabled = true;
        $scope.onboardingIndex = 0;
    });
*Check index watch newval is undefined instead of === null to allow for this.
Remove duplicate api description Height from readme.md file
Built js

Make update cycle also run on 'enabled' change
@atulherenow
Copy link

atulherenow commented Mar 3, 2017

@adamalbrecht

Attached item is not focused in case of <a> tags sometimes even in <div>

image

Sorry to ask this here as issues tab is disabled. . . . .
Thanks for the awesome plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants