x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="accordion"> <details name="my_accordion"> <summary>Can I access my account history?</summary> <p class="pbe-4"> Yes, you can view your complete account history including all transactions, plan changes, and support tickets in the Account History section of your dashboard. </p> </details> <details name="my_accordion"> <summary aria-disabled="true" tabindex="-1">Premium feature information</summary> <p class="pbe-4"> This section contains information about premium features. Upgrade your plan to access this content. </p> </details> <details name="my_accordion"> <summary>How do I update my email address?</summary> <p class="pbe-4"> You can update your email address in your account settings. You'll receive a verification email at your new address to confirm the change. </p> </details></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="accordion"> <details name="my_accordion"> <summary>Can I access my account history?</summary> <p class="pbe-4"> Yes, you can view your complete account history including all transactions, plan changes, and support tickets in the Account History section of your dashboard. </p> </details> <details name="my_accordion"> <summary aria-disabled="true" tabindex="-1">Premium feature information</summary> <p class="pbe-4"> This section contains information about premium features. Upgrade your plan to access this content. </p> </details> <details name="my_accordion"> <summary>How do I update my email address?</summary> <p class="pbe-4"> You can update your email address in your account settings. You'll receive a verification email at your new address to confirm the change. </p> </details></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
:where(.accordion) { details { font-size: var(--text-sm); &:not(:last-child) { border-block-end-width: var(--border); } &::details-content { block-size: 0; opacity: 0; overflow: hidden; transition-behavior: allow-discrete; transition-duration: var(--time-200); transition-property: content-visibility, block-size, opacity; transition-timing-function: var(--ease-out-3); } &[open]::details-content { block-size: auto; opacity: 1; } } summary { align-items: flex-start; cursor: default; display: flex; font-weight: var(--font-medium); padding-block: var(--size-2_5); &:hover { text-decoration: underline; } &:focus-visible { outline: var(--border-2) solid var(--color-selected-dark); } &[aria-disabled="true"] { opacity: var(--opacity-50); pointer-events: none; } &::after { background-color: currentColor; block-size: var(--size-4); color: var(--color-text-subtle); content: ""; inline-size: var(--size-4); margin-inline-start: auto; mask-image: url("chevron-down.svg"); mask-size: cover; transition-duration: var(--time-200); transition-property: transform; transition-timing-function: var(--ease-out-3); } details[open] > &::after { transform: var(--rotate-180); } }}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.