Skip to content

Commit

Permalink
Merge pull request #71 from Tivix/68-bug-cpf-library---hard-skill-cat…
Browse files Browse the repository at this point in the history
…egory-has-wrong-font-size

[FE][CPF-68] Hard skill category has wrong font size
  • Loading branch information
wiktoriasalamon authored Jul 1, 2024
2 parents bea5f81 + d96d606 commit c40db8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export interface AccordionCardProps extends React.HTMLAttributes<HTMLDivElement> {
title: string;
expandedByDefault?: boolean;
small?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const AccordionCard = ({
children,
expandedByDefault,
className,
small,
}: PropsWithChildren<AccordionCardProps>) => {
const [isOpen, setOpen] = useState(false);

Expand All @@ -32,7 +33,7 @@ export const AccordionCard = ({
)}
onClick={() => setOpen(!isOpen)}
>
<span className="text-xl font-semibold text-navy-900">{title}</span>
<span className={`${small ? 'text-base' : 'text-xl'} font-semibold text-navy-900`}>{title}</span>
{children ? (
<div className="flex h-8 w-8 items-center justify-center rounded-full bg-navy-50">
<ChevronRightIcon className={generateClassNames('rotate-90 text-navy-500', { '-rotate-90': isOpen })} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const AdvancementLevel: React.FC<AdvancementLevelProps> = ({ showVertical
className="w-full"
title={category}
expandedByDefault={shouldBeExpandedByDefault}
small
>
<AccordionList
items={skills.map(({ name, description }) => ({
Expand Down

0 comments on commit c40db8b

Please sign in to comment.