File tree Expand file tree Collapse file tree 4 files changed +12
-97
lines changed
Expand file tree Collapse file tree 4 files changed +12
-97
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,8 @@ const AccordionItem: React.FC<AccordionItemProps> = ({
2525 < div className = "mt-2 mb-2" >
2626 < button
2727 className = { clsx (
28- "button" ,
2928 "bg-klerosUIComponentsWhiteBackground border-klerosUIComponentsStroke border" ,
30- "hover-medium-blue hover-short-transition" ,
29+ "hover-medium-blue hover-short-transition hover:cursor-pointer " ,
3130 "rounded-[3px] pt-[11.5px] pr-8 pb-[11.5px] pl-8" ,
3231 "flex w-full items-center justify-between" ,
3332 ) }
@@ -36,11 +35,11 @@ const AccordionItem: React.FC<AccordionItemProps> = ({
3635 { title }
3736 { expanded ? (
3837 < Minus
39- className = { clsx ( "svg fill-klerosUIComponentsPrimaryText h-4 w-4" ) }
38+ className = { clsx ( "fill-klerosUIComponentsPrimaryText h-4 w-4" ) }
4039 />
4140 ) : (
4241 < Plus
43- className = { clsx ( "svg fill-klerosUIComponentsPrimaryText h-4 w-4" ) }
42+ className = { clsx ( "fill-klerosUIComponentsPrimaryText h-4 w-4" ) }
4443 />
4544 ) }
4645 </ button >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ interface AccordionProps {
1313const CustomAccordion : React . FC < AccordionProps > = ( { items, ...props } ) => {
1414 const [ expanded , setExpanded ] = useState ( - 1 ) ;
1515 return (
16- < div className = "border- box flex w-[1000px] flex-col" { ...props } >
16+ < div className = "box-border flex w-[1000px] flex-col" { ...props } >
1717 { items . map ( ( item , index ) => (
1818 < AccordionItem
1919 key = { index }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const DefaultTitle: React.FC<{ item: AccordionItem }> = ({ item }) => (
1919 { item . icon ?? ( item . Icon && < item . Icon /> ) }
2020 < p
2121 className = { clsx (
22- "p w-fit" ,
22+ "w-fit" ,
2323 "text-klerosUIComponentsPrimaryText text-center font-semibold" ,
2424 ) }
2525 >
@@ -35,7 +35,7 @@ const Accordion: React.FC<AccordionProps> = ({
3535} ) => {
3636 const [ expanded , setExpanded ] = useState ( defaultExpanded ?? - 1 ) ;
3737 return (
38- < div className = "border- box flex w-[1000px] flex-col" { ...props } >
38+ < div className = "box-border flex w-[1000px] flex-col" { ...props } >
3939 { items . map ( ( item , index ) => (
4040 < AccordionItem
4141 key = { index }
Original file line number Diff line number Diff line change 6767
6868 --klerosUIComponentsTransitionSpeed : 0.25s ;
6969 }
70- }
7170
72- @layer components {
7371 /* Typography styles */
74- .h1 {
75- font-size : 24px ;
76- font-weight : 600 ;
77- line-height : 33px ;
78- margin : 0 ;
72+ h1 {
7973 color : var (--klerosUIComponentsPrimaryText );
8074 }
8175
82- .h2 {
83- font-size : 16px ;
84- font-weight : 600 ;
85- line-height : 22px ;
86- margin : 0 ;
76+ h2 {
8777 color : var (--klerosUIComponentsPrimaryText );
8878 }
8979
90- .p {
91- font-size : 16px ;
92- font-weight : 400 ;
93- line-height : 22px ;
94- margin : 0 ;
95- overflow-wrap : break-word;
80+ p {
9681 color : var (--klerosUIComponentsPrimaryText );
9782 }
9883
99- .small {
100- font-size : 14px ;
101- font-weight : 400 ;
102- line-height : 19px ;
103- margin : 0 ;
104- overflow-wrap : break-word;
84+ small {
10585 color : var (--klerosUIComponentsSecondaryText );
10686 }
87+ }
10788
108- /* Element styles */
109- .hr {
110- opacity : 1 ;
111- }
112-
113- .svg {
114- display : inline-block;
115- vertical-align : middle;
116- }
117-
118- .img {
119- display : inline-block;
120- vertical-align : middle;
121- }
122-
123- .button {
124- font-family : inherit;
125- font-size : 100% ;
126- margin : 0 ;
127- border : none;
128- overflow : visible;
129- text-transform : none;
130- -webkit-appearance : button;
131-
132- & : hover : enabled {
133- cursor : pointer;
134- }
135- }
136-
137- .input {
138- font-family : inherit;
139- font-size : 100% ;
140- margin : 0 ;
141- border : none;
142- overflow : visible;
143- }
144-
145- .optgroup {
146- font-family : inherit;
147- font-size : 100% ;
148- margin : 0 ;
149- border : none;
150- }
151-
152- .select {
153- font-family : inherit;
154- font-size : 100% ;
155- margin : 0 ;
156- border : none;
157- text-transform : none;
158- }
159-
160- .textarea {
161- font-family : inherit;
162- font-size : 100% ;
163- margin : 0 ;
164- border : none;
165- }
166-
89+ @layer components {
16790 /* Animations */
16891 @keyframes fadeIn {
16992 0% {
180103 .fade-in {
181104 animation : fadeIn 0.3s ease-in-out;
182105 }
183- /* Box sizing */
184- .border-box ,
185- .border-box * ,
186- .border-box * : before ,
187- .border-box * : after {
188- box-sizing : border-box;
189- }
190106
191107 /* Transitions */
192108 .hover-short-transition {
You can’t perform that action at this time.
0 commit comments