frontend: the per-agent UI typechecks under preact 11
preact 11's types reject the side panel's role=dialog on an aside, which the nix agent-typecheck check runs. The drawer is a div, whose CSS is class-based, so nothing else changes.
This commit is contained in:
parent
d76d54c412
commit
be383ab276
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ export function SidePanel({ open, title, onClose, children }: SidePanelProps) {
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<aside
|
<div
|
||||||
class={`agent-side-panel-drawer${open ? " open" : ""}`}
|
class={`agent-side-panel-drawer${open ? " open" : ""}`}
|
||||||
role="dialog"
|
role="dialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
|
|
@ -58,7 +58,7 @@ export function SidePanel({ open, title, onClose, children }: SidePanelProps) {
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="agent-side-panel-body">{children}</div>
|
<div class="agent-side-panel-body">{children}</div>
|
||||||
</aside>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue