mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 20:19:13 +00:00
Use more semantic els
This commit is contained in:
@@ -147,7 +147,7 @@ export class Details {
|
||||
'details--disabled': this.disabled
|
||||
}}
|
||||
>
|
||||
<div
|
||||
<header
|
||||
ref={el => (this.header = el)}
|
||||
id={`${this.id}-header`}
|
||||
class="details__header"
|
||||
@@ -166,7 +166,7 @@ export class Details {
|
||||
<span class="details__summary-icon">
|
||||
<sl-icon name="chevron-right" />
|
||||
</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div ref={el => (this.body = el)} class="details__body" onTransitionEnd={this.handleBodyTransitionEnd}>
|
||||
<div id={`${this.id}-content`} class="details__content" role="region" aria-labeledby={`${this.id}-header`}>
|
||||
|
||||
@@ -175,7 +175,7 @@ export class Dialog {
|
||||
tabIndex={0}
|
||||
>
|
||||
{!this.noHeader && (
|
||||
<div class="dialog__header">
|
||||
<header class="dialog__header">
|
||||
<span class="dialog__title" id={`${this.id}-title`}>
|
||||
{/* If there's no label, use an invisible character to prevent the heading from collapsing */}
|
||||
{this.label || String.fromCharCode(65279)}
|
||||
@@ -183,7 +183,7 @@ export class Dialog {
|
||||
<button class="dialog__close" type="button" onClick={this.handleCloseClick}>
|
||||
<sl-icon name="x"></sl-icon>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
)}
|
||||
|
||||
<div class="dialog__body">
|
||||
@@ -191,9 +191,9 @@ export class Dialog {
|
||||
</div>
|
||||
|
||||
{!this.noFooter && (
|
||||
<div class="dialog__footer">
|
||||
<footer class="dialog__footer">
|
||||
<slot name="footer" />
|
||||
</div>
|
||||
</footer>
|
||||
)}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user