Skip to content

Commit a7f208e

Browse files
committed
fix: list.md adding tag="dl"
1 parent 094703d commit a7f208e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/routes/docs/typography/list.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This example can be used to apply custom icons instead of the default bullets fo
5252
</script>
5353
5454
<Heading tag="h2" customSize="text-lg font-semibold" class="mb-2 text-lg font-semibold text-gray-900 dark:text-white">Password requirements</Heading>
55-
<List tag="ul" class="space-y-1 text-gray-500 dark:text-gray-400" list="none">
55+
<List tag="ul" class="space-y-1 text-gray-500 dark:text-gray-400">
5656
<Li icon>
5757
<CheckCircleSolid class="me-2 h-5 w-5 text-green-500 dark:text-green-400" />
5858
At least 10 characters (and up to 100 characters)
@@ -107,15 +107,15 @@ Use this example to nested another list of items inside the parent list element.
107107

108108
### Unstyled
109109

110-
Use the `list="none"` prop to disable the list style bullets or numbers.
110+
Use the `tag="dl"` prop to disable the list style bullets or numbers.
111111

112112
```svelte example
113113
<script>
114114
import { List, Li, Heading } from "flowbite-svelte";
115115
</script>
116116
117117
<Heading tag="h2" customSize="text-lg font-semibold" class="mb-2 text-lg font-semibold text-gray-900 dark:text-white">Password requirements</Heading>
118-
<List tag="ul" class="space-y-1 text-gray-500 dark:text-gray-400" list="none">
118+
<List tag="dl" class="space-y-1 text-gray-500 dark:text-gray-400">
119119
<Li>At least 10 characters (and up to 100 characters)</Li>
120120
<Li>At least one lowercase character</Li>
121121
<Li>Inclusion of at least one special character, e.g., ! @ # ?</Li>
@@ -211,7 +211,7 @@ Use this example to create a list of items with custom SVG icons instead of the
211211
import { CheckOutline } from "flowbite-svelte-icons";
212212
</script>
213213
214-
<List tag="ul" class="mb-8 space-y-4 text-gray-500 dark:text-gray-400" list="none">
214+
<List tag="ul" class="mb-8 space-y-4 text-gray-500 dark:text-gray-400">
215215
<Li icon class="gap-3">
216216
<CheckOutline class="h-5 w-5 text-green-500 dark:text-green-400" />
217217
Individual configuration
@@ -244,7 +244,7 @@ This example can be used to show more details for each list item such as the use
244244
import { List, Li } from "flowbite-svelte";
245245
</script>
246246
247-
<List tag="ul" list="none" class="max-w-md divide-y divide-gray-200 dark:divide-gray-700">
247+
<List tag="dl" class="max-w-md divide-y divide-gray-200 dark:divide-gray-700">
248248
<Li class="pb-3 sm:pb-4">
249249
<div class="flex items-center space-x-4 rtl:space-x-reverse">
250250
<div class="shrink-0">
@@ -317,7 +317,7 @@ Use this example to create a horizontally aligned list of items.
317317
import { List, Li, A } from "flowbite-svelte";
318318
</script>
319319
320-
<List tag="ul" list="none" class="mb-6 flex flex-wrap items-center justify-center">
320+
<List tag="dl" class="mb-6 flex flex-wrap items-center justify-center">
321321
<Li>
322322
<A href="/" class="me-4 hover:underline md:me-6" textColor="text-gray-700 dark:text-white">About</A>
323323
</Li>

0 commit comments

Comments
 (0)