Skip to content

Commit 64954d3

Browse files
authored
[Docs Site] Always show text input on feedback prompt (#18503)
1 parent 5a61168 commit 64954d3

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/components/FeedbackPrompt.astro

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ import { AstroIcon } from "~/components";
5151
>
5252
</div>
5353
<div>
54-
<input type="radio" id="other" value="other" name="reason" />
55-
<label for="other">Other</label>
54+
<input type="radio" id="other-yes" value="other" name="reason" />
55+
<label for="other-yes">Other</label>
56+
</div>
57+
<div>
5658
<input
5759
type="text"
5860
placeholder="Tell us more about your experience."
@@ -96,8 +98,10 @@ import { AstroIcon } from "~/components";
9698
<label for="missing-the-information">Missing the information</label>
9799
</div>
98100
<div>
99-
<input type="radio" id="other" value="other" name="reason" />
100-
<label for="other">Other</label>
101+
<input type="radio" id="other-no" value="other" name="reason" />
102+
<label for="other-no">Other</label>
103+
</div>
104+
<div>
101105
<input
102106
type="text"
103107
placeholder="Tell us more about your experience."
@@ -139,14 +143,6 @@ import { AstroIcon } from "~/components";
139143
margin-bottom: 0.5rem;
140144
}
141145

142-
#info {
143-
display: none;
144-
}
145-
146-
#other:checked ~ #info {
147-
display: flex;
148-
}
149-
150146
[data-icon] {
151147
cursor: pointer;
152148
color: var(--sl-color-gray-3);

0 commit comments

Comments
 (0)