kopia lustrzana https://github.com/shoelace-style/shoelace
Add header part to details; fixes #150
rodzic
b51871aca3
commit
41ff07b965
|
@ -11,6 +11,7 @@ let id = 0;
|
|||
* @slot summary - The details' summary. Alternatively, you can use the summary prop.
|
||||
*
|
||||
* @part base - The component's base wrapper.
|
||||
* @part header - The summary header.
|
||||
* @part summary - The details summary.
|
||||
* @part summary-icon - The expand/collapse summary icon.
|
||||
* @part content - The details content.
|
||||
|
@ -156,6 +157,7 @@ export class Details {
|
|||
>
|
||||
<header
|
||||
ref={el => (this.header = el)}
|
||||
part="header"
|
||||
id={`${this.componentId}-header`}
|
||||
class="details__header"
|
||||
role="button"
|
||||
|
|
Ładowanie…
Reference in New Issue