Skip to content

Commit

Permalink
fix(): rename getClass to selectorOf
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed Mar 21, 2020
1 parent 0d87ce6 commit 061ce47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/snack-bar/snack-bar-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class LySnackBarRef {
clearTimeout(timer);
}

snackBar.containerElement.classList.remove(this._theme.getClass('SnackBar:open'));
snackBar.containerElement.classList.remove(this._theme.selectorOf('SnackBar:open'));
setTimeout(() => {
snackBar.destroy();
}, 350);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/src/theme/theme2.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class LyTheme2 {
return classesMap;
}

getClass(styles: string | StyleTemplate): string {
selectorOf(styles: string | StyleTemplate): string {
const themeName = this.initialTheme;
const styleMap = _STYLE_MAP.get(styles)!;
return styleMap.classes || styleMap[themeName];
Expand Down

0 comments on commit 061ce47

Please sign in to comment.