Define yearly-overlay part for styling access

This commit is contained in:
trading_peter 2025-01-07 23:32:48 +01:00
parent 05af1b6474
commit f4505cc916
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tp/tp-date-picker", "name": "@tp/tp-date-picker",
"version": "2.0.1", "version": "2.0.2",
"description": "", "description": "",
"main": "tp-date-picker.js", "main": "tp-date-picker.js",
"scripts": { "scripts": {

View File

@ -164,7 +164,7 @@ class TpDatePicker extends FormElement(LitElement) {
` `
})} })}
</div> </div>
<div class="year-overlay" ?visible=${this.showYearSelector} @click=${this.selectYear}> <div class="year-overlay" part="year-overlay" ?visible=${this.showYearSelector} @click=${this.selectYear}>
${years.map(y => html` ${years.map(y => html`
<div .value=${y}>${y}</div> <div .value=${y}>${y}</div>
`)} `)}