Skip to content

Commit

Permalink
fix(alert): display issue preventing close
Browse files Browse the repository at this point in the history
  • Loading branch information
ogunb committed Nov 21, 2023
1 parent 2cb12c0 commit cd33f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/alert/bl-alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class BlAlert extends LitElement {
return;
}

(slotElement.parentElement as HTMLElement).style.display = "flex";
(this.shadowRoot?.querySelector(".actions") as HTMLElement).style.display = "flex";

const variant = slotElement.name === "action-secondary" ? "secondary" : "primary";
const buttonTypes: Record<AlertVariant, string> = {
Expand Down

0 comments on commit cd33f1a

Please sign in to comment.