Skip to content

Commit 16eb340

Browse files
Merge pull request #537 from TheMcnafaha/replace-fieldsets
refactor(modal/examples): replaces fieldsets in example code
2 parents adce1b9 + 3866e94 commit 16eb340

File tree

9 files changed

+55
-55
lines changed

9 files changed

+55
-55
lines changed

apps/website/src/routes/docs/headless/modal/examples/animation.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,24 @@ export default component$(() => {
3232
<p class="mb-4 leading-5">
3333
You can update your profile here. Hit the save button when finished.
3434
</p>
35-
<fieldset class="mb-1 flex items-baseline justify-between">
35+
<div class="mb-1 flex items-baseline justify-between">
3636
<label for="name">Name</label>
3737
<input
3838
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
3939
id="name"
4040
type="text"
4141
placeholder="John Doe"
4242
/>
43-
</fieldset>
44-
<fieldset class="flex items-baseline justify-between">
43+
</div>
44+
<div class="flex items-baseline justify-between">
4545
<label for="email">Email</label>
4646
<input
4747
class="bg-background text-foreground mt-2 rounded-sm px-4 py-3"
4848
id="email"
4949
type="text"
5050
placeholder="[email protected]"
5151
/>
52-
</fieldset>
52+
</div>
5353
</ModalContent>
5454
<ModalFooter class="flex justify-end gap-4">
5555
<button

apps/website/src/routes/docs/headless/modal/examples/auto-focus.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ export default component$(() => {
2323
<p class="mb-4 leading-5">
2424
You can update your profile here. Hit the save button when finished.
2525
</p>
26-
<fieldset class="mb-1 flex items-baseline justify-between">
26+
<div class="mb-1 flex items-baseline justify-between">
2727
<label for="name">Name</label>
2828
<input
2929
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
3030
id="name"
3131
type="text"
3232
placeholder="John Doe"
3333
/>
34-
</fieldset>
35-
<fieldset class="flex items-baseline justify-between">
34+
</div>
35+
<div class="flex items-baseline justify-between">
3636
<label for="email">Email</label>
3737
<input
3838
autoFocus
@@ -41,7 +41,7 @@ export default component$(() => {
4141
type="text"
4242
placeholder="[email protected]"
4343
/>
44-
</fieldset>
44+
</div>
4545
</ModalContent>
4646
<ModalFooter class="flex justify-end gap-4">
4747
<button

apps/website/src/routes/docs/headless/modal/examples/backdrop-close.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ export default component$(() => {
2424
<p class="mb-4 leading-5">
2525
You can update your profile here. Hit the save button when finished.
2626
</p>
27-
<fieldset class="mb-1 flex items-baseline justify-between">
27+
<div class="mb-1 flex items-baseline justify-between">
2828
<label for="name">Name</label>
2929
<input
3030
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
3131
id="name"
3232
type="text"
3333
placeholder="John Doe"
3434
/>
35-
</fieldset>
36-
<fieldset class="flex items-baseline justify-between">
35+
</div>
36+
<div class="flex items-baseline justify-between">
3737
<label for="email">Email</label>
3838
<input
3939
class="bg-background text-foreground mt-2 rounded-sm px-4 py-3"
4040
id="email"
4141
type="text"
4242
placeholder="[email protected]"
4343
/>
44-
</fieldset>
44+
</div>
4545
</ModalContent>
4646
<ModalFooter class="flex justify-end gap-4">
4747
<button

apps/website/src/routes/docs/headless/modal/examples/backdrop.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ export default component$(() => {
3030
<p class="mb-4 leading-5">
3131
You can update your profile here. Hit the save button when finished.
3232
</p>
33-
<fieldset class="mb-1 flex items-baseline justify-between">
33+
<div class="mb-1 flex items-baseline justify-between">
3434
<label for="name">Name</label>
3535
<input
3636
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
3737
id="name"
3838
type="text"
3939
placeholder="John Doe"
4040
/>
41-
</fieldset>
42-
<fieldset class="flex items-baseline justify-between">
41+
</div>
42+
<div class="flex items-baseline justify-between">
4343
<label for="email">Email</label>
4444
<input
4545
class="bg-background text-foreground mt-2 rounded-sm px-4 py-3"
4646
id="email"
4747
type="text"
4848
placeholder="[email protected]"
4949
/>
50-
</fieldset>
50+
</div>
5151
</ModalContent>
5252
<ModalFooter class="flex justify-end gap-4">
5353
<button

apps/website/src/routes/docs/headless/modal/examples/bottom-sheet.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ export default component$(() => {
1212
.bottom-sheet::backdrop {
1313
background: hsla(0, 0%, 0%, 0.5);
1414
}
15-
15+
1616
.bottom-sheet.modal-showing {
1717
animation: bottomSheetOpen 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
1818
}
19-
19+
2020
.bottom-sheet.modal-showing::backdrop {
2121
animation: sheetFadeIn 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
2222
}
23-
23+
2424
.bottom-sheet.modal-closing {
2525
animation: bottomSheetClose 0.35s forwards cubic-bezier(0.6, 0.6, 0, 1);
2626
}
27-
27+
2828
.bottom-sheet.modal-closing::backdrop {
2929
animation: sheetFadeOut 0.35s forwards cubic-bezier(0.6, 0.6, 0, 1);
3030
}
31-
31+
3232
@keyframes bottomSheetOpen {
3333
from {
3434
opacity: 0;
@@ -39,7 +39,7 @@ export default component$(() => {
3939
transform: translateY(0%);
4040
}
4141
}
42-
42+
4343
@keyframes bottomSheetClose {
4444
from {
4545
opacity: 1;
@@ -50,7 +50,7 @@ export default component$(() => {
5050
transform: translateY(100%);
5151
}
5252
}
53-
53+
5454
@keyframes sheetFadeIn {
5555
from {
5656
opacity: 0;
@@ -59,7 +59,7 @@ export default component$(() => {
5959
opacity: 1;
6060
}
6161
}
62-
62+
6363
@keyframes sheetFadeOut {
6464
from {
6565
opacity: 1;
@@ -68,7 +68,7 @@ export default component$(() => {
6868
opacity: 0;
6969
}
7070
}
71-
71+
7272
`);
7373

7474
return (
@@ -92,24 +92,24 @@ export default component$(() => {
9292
<p class="mb-4 leading-5">
9393
You can update your profile here. Hit the save button when finished.
9494
</p>
95-
<fieldset class="mb-1 flex items-baseline justify-between">
95+
<div class="mb-1 flex items-baseline justify-between">
9696
<label for="name">Name</label>
9797
<input
9898
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
9999
id="name"
100100
type="text"
101101
placeholder="John Doe"
102102
/>
103-
</fieldset>
104-
<fieldset class="flex items-baseline justify-between">
103+
</div>
104+
<div class="flex items-baseline justify-between">
105105
<label for="email">Email</label>
106106
<input
107107
class="bg-background text-foreground mt-2 rounded-sm px-4 py-3"
108108
id="email"
109109
type="text"
110110
placeholder="[email protected]"
111111
/>
112-
</fieldset>
112+
</div>
113113
</ModalContent>
114114
<ModalFooter class="flex justify-end gap-4">
115115
<button

apps/website/src/routes/docs/headless/modal/examples/inspect.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ export default component$(() => {
2323
<p class="mb-4 leading-5">
2424
You can update your profile here. Hit the save button when finished.
2525
</p>
26-
<fieldset class="mb-1 flex items-baseline justify-between">
26+
<div class="mb-1 flex items-baseline justify-between">
2727
<label for="name">Name</label>
2828
<input
2929
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
3030
id="name"
3131
type="text"
3232
placeholder="John Doe"
3333
/>
34-
</fieldset>
35-
<fieldset class="flex items-baseline justify-between">
34+
</div>
35+
<div class="flex items-baseline justify-between">
3636
<label for="email">Email</label>
3737
<input
3838
class="bg-background text-foreground mt-2 rounded-sm px-4 py-3"
3939
id="email"
4040
type="text"
4141
placeholder="[email protected]"
4242
/>
43-
</fieldset>
43+
</div>
4444
</ModalContent>
4545
<ModalFooter class="flex justify-end gap-4">
4646
<button

apps/website/src/routes/docs/headless/modal/examples/main.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ export default component$(() => {
2424
<p class="mb-4 leading-5">
2525
You can update your profile here. Hit the save button when finished.
2626
</p>
27-
<fieldset class="mb-1 flex items-baseline justify-between">
27+
<div class="mb-1 flex items-baseline justify-between">
2828
<label for="name">Name</label>
2929
<input
3030
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
3131
id="name"
3232
type="text"
3333
placeholder="John Doe"
3434
/>
35-
</fieldset>
36-
<fieldset class="flex items-baseline justify-between">
35+
</div>
36+
<div class="flex items-baseline justify-between">
3737
<label for="email">Email</label>
3838
<input
3939
class="bg-background text-foreground mt-2 rounded-sm px-4 py-3"
4040
id="email"
4141
type="text"
4242
placeholder="[email protected]"
4343
/>
44-
</fieldset>
44+
</div>
4545
</ModalContent>
4646
<ModalFooter class="flex justify-end gap-4">
4747
<button

apps/website/src/routes/docs/headless/modal/examples/sheet.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ export default component$(() => {
1212
.sheet::backdrop {
1313
background: hsla(0, 0%, 0%, 0.5);
1414
}
15-
15+
1616
.sheet.modal-showing {
1717
animation: sheetOpen 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
1818
}
19-
19+
2020
.sheet.modal-showing::backdrop {
2121
animation: sheetFadeIn 0.75s forwards cubic-bezier(0.6, 0.6, 0, 1);
2222
}
23-
23+
2424
.sheet.modal-closing {
2525
animation: sheetClose 0.35s forwards cubic-bezier(0.6, 0.6, 0, 1);
2626
}
27-
27+
2828
.sheet.modal-closing::backdrop {
2929
animation: sheetFadeOut 0.35s forwards cubic-bezier(0.6, 0.6, 0, 1);
3030
}
31-
31+
3232
@keyframes sheetOpen {
3333
from {
3434
opacity: 0;
@@ -39,7 +39,7 @@ export default component$(() => {
3939
transform: translateX(0%);
4040
}
4141
}
42-
42+
4343
@keyframes sheetClose {
4444
from {
4545
opacity: 1;
@@ -50,7 +50,7 @@ export default component$(() => {
5050
transform: translateX(100%);
5151
}
5252
}
53-
53+
5454
@keyframes sheetFadeIn {
5555
from {
5656
opacity: 0;
@@ -59,7 +59,7 @@ export default component$(() => {
5959
opacity: 1;
6060
}
6161
}
62-
62+
6363
@keyframes sheetFadeOut {
6464
from {
6565
opacity: 1;
@@ -68,7 +68,7 @@ export default component$(() => {
6868
opacity: 0;
6969
}
7070
}
71-
71+
7272
`);
7373

7474
return (
@@ -92,24 +92,24 @@ export default component$(() => {
9292
<p class="mb-4 leading-5">
9393
You can update your profile here. Hit the save button when finished.
9494
</p>
95-
<fieldset class="mb-1 flex items-baseline justify-between">
95+
<div class="mb-1 flex items-baseline justify-between">
9696
<label for="name">Name</label>
9797
<input
9898
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
9999
id="name"
100100
type="text"
101101
placeholder="John Doe"
102102
/>
103-
</fieldset>
104-
<fieldset class="flex items-baseline justify-between">
103+
</div>
104+
<div class="flex items-baseline justify-between">
105105
<label for="email">Email</label>
106106
<input
107107
class="bg-background text-foreground mt-2 rounded-sm px-4 py-3"
108108
id="email"
109109
type="text"
110110
placeholder="[email protected]"
111111
/>
112-
</fieldset>
112+
</div>
113113
</ModalContent>
114114
<ModalFooter class="flex justify-end gap-4">
115115
<button

apps/website/src/routes/docs/headless/modal/examples/transition.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default component$(() => {
2222
.my-transition.modal-showing, .my-transition.modal-showing::backdrop {
2323
opacity: 1;
2424
}
25-
25+
2626
.my-transition.modal-closing, .my-transition.modal-closing::backdrop {
2727
opacity: 0;
2828
}
@@ -49,24 +49,24 @@ export default component$(() => {
4949
<p class="mb-4 leading-5">
5050
You can update your profile here. Hit the save button when finished.
5151
</p>
52-
<fieldset class="mb-1 flex items-baseline justify-between">
52+
<div class="mb-1 flex items-baseline justify-between">
5353
<label for="name">Name</label>
5454
<input
5555
class="bg-background text-foreground mt-2 rounded-sm px-4 py-[10px]"
5656
id="name"
5757
type="text"
5858
placeholder="John Doe"
5959
/>
60-
</fieldset>
61-
<fieldset class="flex items-baseline justify-between">
60+
</div>
61+
<div class="flex items-baseline justify-between">
6262
<label for="email">Email</label>
6363
<input
6464
class="bg-background text-foreground mt-2 rounded-sm px-4 py-3"
6565
id="email"
6666
type="text"
6767
placeholder="[email protected]"
6868
/>
69-
</fieldset>
69+
</div>
7070
</ModalContent>
7171
<ModalFooter class="flex justify-end gap-4">
7272
<button

0 commit comments

Comments
 (0)