Add styling options for the close icon

This commit is contained in:
trading_peter 2025-02-24 11:58:23 +01:00
parent 89a8f893c2
commit 54f9f3cb5d
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@tp/tp-dialog",
"version": "1.2.1",
"version": "1.3.0",
"description": "",
"main": "tp-dialog.js",
"scripts": {

View File

@ -41,6 +41,7 @@ class TpDialog extends EventHelpers(LitElement) {
position: absolute;
right: 4px;
top: 5px;
z-index: 1;
--tp-icon-width: 18px;
--tp-icon-height: 18px;
}
@ -53,7 +54,7 @@ class TpDialog extends EventHelpers(LitElement) {
return html`
<dialog part="dialog">
${showClose ? html`
<div class="close-icon">
<div class="close-icon" part="close-icon">
<tp-icon .icon=${this.icon ? this.icon : TpDialog.closeIcon} dialog-dismiss></tp-icon>
</div>
` : null}