Skip to content

Commit b914951

Browse files
saraparsa13Sara.Parsaee
and
Sara.Parsaee
authored
fix: prevent close icon background from showing when dismissible (#189)
Co-authored-by: Sara.Parsaee <Sara.Parsaee@Tapsi.cab>
1 parent 51eda4d commit b914951

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/bottom-sheet/bottom-sheet.ts

+10-9
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,15 @@ export class BottomSheet extends LitElement {
166166
private renderDismissButton = () => {
167167
if (this.dismissible)
168168
return html`
169-
<tap-icon-button
170-
@click=${() => this.handleDismiss()}
171-
type="button"
172-
size="small"
173-
variant="naked"
174-
>
175-
<tap-icon-cross color="#000"></tap-icon-cross>
176-
</tap-icon-button>
169+
<div class="close-button">
170+
<tap-icon-button
171+
@click=${() => this.handleDismiss()}
172+
type="button"
173+
size="small"
174+
variant="naked">
175+
<tap-icon-cross color="#000"></tap-icon-cross>
176+
</tap-icon-button>
177+
</div>
177178
`;
178179
};
179180

@@ -205,7 +206,7 @@ export class BottomSheet extends LitElement {
205206
: html`
206207
<div class="bottom-sheet-header" part="header">
207208
<div class="title">${this.title}</div>
208-
<div class="close-button">${this.renderDismissButton()}</div>
209+
${this.renderDismissButton()}
209210
</div>
210211
`}
211212
<div class="bottom-sheet-body" part="body">

0 commit comments

Comments
 (0)