Add styling part

This commit is contained in:
trading_peter 2025-03-07 09:51:31 +01:00
parent 8c26fe50e3
commit e6143d272a
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@tp/tp-color-picker",
"version": "1.1.0",
"version": "1.2.0",
"description": "",
"main": "tp-color-picker.js",
"scripts": {

View File

@ -84,7 +84,7 @@ class TpColorPicker extends FormElement(DomQuery(LitElement)) {
return html`
<tp-popup id="popup" part="popup" @is-open-changed=${e => this.isOpen = e.detail}>
<div slot="toggle" part="selection" style="${this._showPickedColor(this.value)}"></div>
<div slot="content" @click="${this._selectColor}">
<div slot="content" part="selector" @click="${this._selectColor}">
<div class="wrap">
${this.colorList.map(color => html`
<div color style="${this._bgColor(color)}"></div>