@@ -98,17 +98,16 @@ const Accordion: FC<IAccordionProps> = ({
98
98
onMouseOver = { ( ) => hasDraggableSections && setHoveredId ( section . id ) }
99
99
onMouseLeave = { ( ) => hasDraggableSections && setHoveredId ( null ) }
100
100
className = { classNames (
101
- "yl-border-2 yl-border-primary-text-color/20 " ,
101
+ "yl-border-2 yl-border-border " ,
102
102
{
103
103
"yl-border-b-0" : idx !== sections . length - 1 ,
104
104
"yl-rounded-tl-md yl-rounded-tr-md" : idx === 0 ,
105
105
"yl-rounded-bl-md yl-rounded-br-md" :
106
106
idx === sections . length - 1 && ! onAddSection
107
107
} ,
108
108
{
109
- "yl-bg-primary-text-color/5" : draggedOverId === section . id ,
110
- "yl-bg-primary-text-color/10" :
111
- draggedId && hoveredId === section . id
109
+ "yl-bg-text/5" : draggedOverId === section . id ,
110
+ "yl-bg-text/10" : draggedId && hoveredId === section . id
112
111
}
113
112
) }
114
113
role = 'presentation'
@@ -124,9 +123,9 @@ const Accordion: FC<IAccordionProps> = ({
124
123
"yl-relative yl-flex yl-cursor-default yl-select-none yl-items-center yl-font-semibold yl-capitalize yl-p-4" ,
125
124
sectionTitleClassName ,
126
125
{
127
- "yl-bg-primary- text-color /5" : expanded . includes ( section . id ) ,
126
+ "yl-bg-text/5" : expanded . includes ( section . id ) ,
128
127
"yl-cursor-pointer" : onSectionItemClick ,
129
- "yl-text-primary- text-color " :
128
+ "yl-text-text" :
130
129
selectedSectionId !== section . id || ! onSectionItemClick ,
131
130
"yl-text-primary" :
132
131
onSectionItemClick && selectedSectionId === section . id
@@ -166,7 +165,7 @@ const Accordion: FC<IAccordionProps> = ({
166
165
) }
167
166
{ section . title }
168
167
{ section . description && (
169
- < Paragraph className = 'yl-text-xs yl-text-primary- text-color /70' >
168
+ < Paragraph className = 'yl-text-xs yl-text-text/70' >
170
169
{ section . description }
171
170
</ Paragraph >
172
171
) }
@@ -195,16 +194,15 @@ const Accordion: FC<IAccordionProps> = ({
195
194
} }
196
195
isDraggable = { hasDraggableSectionItems }
197
196
className = 'yl-gap-4 yl-flex yl-flex-col yl-py-4'
198
- draggedOverClassName = 'yl-border-t-2 yl-border-primary '
197
+ draggedOverClassName = 'yl-border-t-2 yl-border-border '
199
198
liClassName = { ( item : IDraggableListItem ) =>
200
199
classNames (
201
- "yl-cursor-default hover:text-primary break-all leading-normal yl-px-4" ,
200
+ "yl-cursor-default hover:text-text break-words leading-normal yl-px-4" ,
202
201
{
203
202
"yl-cursor-pointer" : onSectionItemClick ,
204
- "yl-text-primary-text-color" :
205
- selectedItemId !== item . id ,
206
- "yl-text-primary" :
207
- onSectionItemClick && selectedItemId === item . id ,
203
+ "yl-text-text" : selectedItemId !== item . id ,
204
+ // "yl-text-text":
205
+ // onSectionItemClick && selectedItemId === item.id,
208
206
"yl-pl-5" : section . items . length === 1
209
207
}
210
208
)
@@ -214,7 +212,7 @@ const Accordion: FC<IAccordionProps> = ({
214
212
< div
215
213
onClick = { ( ) => onAddSectionItem ( section ) }
216
214
className = { classNames (
217
- "yl-cursor-pointer hover:yl-text-primary yl-pb-4 yl-text-primary- text-color yl-text-center yl-flex yl-items-center yl-justify-center yl-gap-1"
215
+ "yl-cursor-pointer hover:yl-text-text yl-pb-4 yl-text-text yl-text-center yl-flex yl-items-center yl-justify-center yl-gap-1"
218
216
) }
219
217
>
220
218
< IconAddCircle className = 'yl-w-6' />
@@ -231,7 +229,7 @@ const Accordion: FC<IAccordionProps> = ({
231
229
< div
232
230
onClick = { onAddSection }
233
231
className = { classNames (
234
- "yl-group yl-border-2 yl-border-t-0 yl-border-primary-text-color/20 hover:yl-bg-primary- text-color /5 yl-rounded-bl-md yl-rounded-br-md yl-cursor-pointer"
232
+ "yl-group yl-border-2 yl-border-t-0 yl-border-border hover:yl-bg-text/5 yl-rounded-bl-md yl-rounded-br-md yl-cursor-pointer"
235
233
) }
236
234
role = 'presentation'
237
235
>
@@ -241,8 +239,8 @@ const Accordion: FC<IAccordionProps> = ({
241
239
) }
242
240
role = 'button'
243
241
>
244
- < Paragraph className = 'yl-text-primary- text-color /70 group-hover:yl-text-primary yl-flex yl-items-center yl-gap-1' >
245
- < IconAddCircle className = 'yl-w-6 group-hover:yl-text-primary ' />
242
+ < Paragraph className = 'yl-text-text/70 group-hover:yl-text-text yl-flex yl-items-center yl-gap-1' >
243
+ < IconAddCircle className = 'yl-w-6 group-hover:yl-text-text ' />
246
244
{ addSectionLabel && (
247
245
< span className = 'yl-text-sm' > { addSectionLabel } </ span >
248
246
) }
0 commit comments