fix(console): render FAQ answers in the server HTML (#56535)

This commit is contained in:
Kit Langton
2026-10-17 14:37:01 -07:00
committed by GitHub
Unverified
parent 657c566412
commit 53cd745959
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { ParentProps } from "solid-js"
export function Faq(props: ParentProps & { question: string }) {
return (
<Collapsible data-slot="faq-item">
<Collapsible forceMount data-slot="faq-item">
<Collapsible.Trigger data-slot="faq-question">
<svg
data-slot="faq-icon-plus"
@@ -0,0 +1,4 @@
/* Answers stay in the server HTML so they can be read without JavaScript and indexed. */
[data-slot="faq-answer"][data-closed] {
display: none;
}
+1
View File
@@ -3,6 +3,7 @@
@import "./token/space.css";
@import "./component/button.css";
@import "./component/faq.css";
@import "./reset.css";
@import "./base.css";