We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a59ae commit 8faac7fCopy full SHA for 8faac7f
src/dialog/overflow-menu/overflow-menu.directive.ts
@@ -51,6 +51,25 @@ export class OverflowMenuDirective extends DialogDirective {
51
52
onDialogInit() {
53
this.dialogConfig.content = this.ibmOverflowMenu;
54
+ this.dialogService.isClosed.subscribe(() => this.updateOpacity());
55
+ }
56
+
57
+ open() {
58
+ super.open();
59
+ this.updateOpacity();
60
61
62
+ toggle() {
63
+ super.toggle();
64
65
66
67
+ updateOpacity() {
68
+ if (this.elementRef.nativeElement.getAttribute("aria-expanded") === "true") {
69
+ this.elementRef.nativeElement.style.opacity = 1;
70
+ } else {
71
+ this.elementRef.nativeElement.style.opacity = null;
72
73
}
74
75
@HostListener("keydown", ["$event"])
0 commit comments