Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(tour): clean up implementation of the guided tour #811

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/client-guided-tour/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rfprodz/client-guided-tour",
"version": "1.0.2",
"version": "1.0.3",
"description": "Guided tour feature for Angular clients.",
"keywords": [
"angular-module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ export class AppGuidedTourDirective implements AfterContentInit, OnDestroy {
}
}

/** Adds elevation to the DOM element and scrolls the element into view. */
private decorateNativeEl(reset?: boolean) {
if (typeof this.nativeElement !== 'undefined' && this.highlightElement) {
const elevationClass = 'mat-elevation-z2';
if (reset === true) {
this.nativeElement.style.border = 'unset';
this.nativeElement.className = this.nativeElement.className.replace(` ${elevationClass}`, '');
return;
}
Expand Down