File tree Expand file tree Collapse file tree 4 files changed +27
-5
lines changed
kit-headless/src/components/accordion
kit-tailwind/src/components/accordion Expand file tree Collapse file tree 4 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 292
292
" code" ,
293
293
" doc"
294
294
]
295
+ },
296
+ {
297
+ "login" : " vasucp1207" ,
298
+ "name" : " Vasu Singh" ,
299
+ "avatar_url" : " https://avatars.githubusercontent.com/u/85363195?v=4" ,
300
+ "profile" : " https://github.com/vasucp1207" ,
301
+ "contributions" : [
302
+ " code"
303
+ ]
295
304
}
296
305
],
297
306
"contributorsPerLine" : 7 ,
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
122
122
<td align="center" valign="top" width="14.28%"><a href="https://naor.dev"><img src="https://avatars.githubusercontent.com/u/6171622?v=4?s=100" width="100px;" alt="Naor Peled"/><br /><sub><b>Naor Peled</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/commits?author=naorpeled" title="Tests">⚠️</a> <a href="https://github.com/qwikifiers/qwik-ui/commits?author=naorpeled" title="Code">💻</a></td>
123
123
<td align="center" valign="top" width="14.28%"><a href="https://github.com/igalklebanov"><img src="https://avatars.githubusercontent.com/u/14938291?v=4?s=100" width="100px;" alt="Igal Klebanov"/><br /><sub><b>Igal Klebanov</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/commits?author=igalklebanov" title="Tests">⚠️</a> <a href="https://github.com/qwikifiers/qwik-ui/commits?author=igalklebanov" title="Code">💻</a></td>
124
124
<td align="center" valign="top" width="14.28%"><a href="https://github.com/thejackshelton"><img src="https://avatars.githubusercontent.com/u/104264123?v=4?s=100" width="100px;" alt="Jack Shelton"/><br /><sub><b>Jack Shelton</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/commits?author=thejackshelton" title="Code">💻</a> <a href="https://github.com/qwikifiers/qwik-ui/commits?author=thejackshelton" title="Documentation">📖</a></td>
125
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/vasucp1207"><img src="https://avatars.githubusercontent.com/u/85363195?v=4?s=100" width="100px;" alt="Vasu Singh"/><br /><sub><b>Vasu Singh</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/commits?author=vasucp1207" title="Code">💻</a></td>
125
126
</tr>
126
127
</tbody >
127
128
</table >
Original file line number Diff line number Diff line change @@ -69,6 +69,21 @@ export const AccordionItem = component$((props: AccordionItemProps) => {
69
69
div.item .content {
70
70
display: none;
71
71
}
72
+ div.item>button {
73
+ border-bottom: 1px solid #e2e8f0;
74
+ display: flex;
75
+ flex-direction: items-start;
76
+ align-items: center;
77
+ padding-left: 8px;
78
+ }
79
+ div.item>button:hover {
80
+ text-decoration: underline;
81
+ }
82
+ div.item[open]>button::after {
83
+ rotate: 180deg;
84
+ top: 30%;
85
+ transition: 0.2s ease-in-out;
86
+ }
72
87
div.item[open] .content {
73
88
display: block;
74
89
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const Accordion = component$((props: AccordionProps) => {
24
24
const { class : classNames , ...rest } = props ;
25
25
return (
26
26
< HeadlessAccordion
27
- class = { clsq ( 'border collapse collapse-arrow' , classNames ) }
27
+ class = { clsq ( 'collapse collapse-arrow' , classNames ) }
28
28
{ ...rest }
29
29
>
30
30
< Slot />
@@ -35,10 +35,7 @@ export const Accordion = component$((props: AccordionProps) => {
35
35
export const AccordionItem = component$ ( ( props : AccordionItemProps ) => {
36
36
const { class : classNames , ...rest } = props ;
37
37
return (
38
- < HeadlessAccordionItem
39
- class = { clsq ( 'collapse-title border' , classNames ) }
40
- { ...rest }
41
- >
38
+ < HeadlessAccordionItem class = { clsq ( 'collapse-title' , classNames ) } { ...rest } >
42
39
< Slot />
43
40
</ HeadlessAccordionItem >
44
41
) ;
You can’t perform that action at this time.
0 commit comments