Define yearly-overlay part for styling access
This commit is contained in:
parent
05af1b6474
commit
f4505cc916
@ -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": {
|
||||||
|
@ -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>
|
||||||
`)}
|
`)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user