Skip to content

Commit

Permalink
Use only 2 font weights to reduce bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Sep 19, 2023
1 parent 0d31c92 commit 75d1f18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Accordion/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const AccordionItem = ({
>
<summary
onClick={handleItemClick}
className="list-none py-6 px-6 group-open:pb-0 text-xl flex gap-2 cursor-pointer flex-row items-center justify-between font-medium marker:[font-size:0px]"
className="list-none py-6 px-6 group-open:pb-0 text-xl flex gap-2 cursor-pointer flex-row items-center justify-between font-bold marker:[font-size:0px]"
>
{summary}
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Button({ children, variant, className, ...rest }: Button
<Tag
{...rest}
className={clsx(
"border font-semibold h-12 px-6 flex items-center hover:no-underline transition-colors",
"border font-bold h-12 px-6 flex items-center hover:no-underline transition-colors",
variant === "primary" &&
"bg-brand-500 text-gray-900 hover:bg-brand-600 border-brand-500 hover:border-brand-600-hover hover:text-gray-900",
variant === "secondary" &&
Expand Down
2 changes: 1 addition & 1 deletion src/components/Supporters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type SupporterTypeProps = {

function SupporterType({ type, withSeparator, count }: SupporterTypeProps) {
return (
<li className="h-12 flex items-center font-medium">
<li className="h-12 flex items-center">
<span aria-hidden>{type}</span>
<span className="sr-only">
Supporting {type}: {count}
Expand Down

0 comments on commit 75d1f18

Please sign in to comment.