Skip to content

Commit

Permalink
fix(core): dialog has padding for close button event when not closeable
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Dec 17, 2024
1 parent cbad7e5 commit 9c5083c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/core/components/dialog/dialog.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@

.t-heading {
margin: 0 0 0.5rem;
padding-inline-end: 2rem;
overflow-wrap: break-word;
font: var(--tui-font-heading-4);

Expand All @@ -106,6 +105,10 @@
}
}

.t-closable {
padding-inline-end: 2rem;
}

.t-header {
display: flex;
border-top-left-radius: inherit;
Expand Down
1 change: 1 addition & 0 deletions projects/core/components/dialog/dialog.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<div class="t-content">
<h2
class="t-heading"
[class.t-closeable]="context.closeable"
[id]="context.id"
[textContent]="context.label"
></h2>
Expand Down

0 comments on commit 9c5083c

Please sign in to comment.