Skip to content

Commit

Permalink
Another batch
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Sep 19, 2023
1 parent 0bbc50f commit fdfd19b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/components/Accordion/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ const classNames = [
"flex-col",
"flex-wrap",
"font-normal",

"prose-a:text-inherit",
"hover:prose-a:text-brand-700",
"dark:prose-a:text-inherit",
"dark:hover:prose-a:text-brand-500",
];

const AccordionItem = ({ summary, open, children }: AccordionItemProps) => {
Expand Down
11 changes: 8 additions & 3 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,23 @@ type ButtonProps = Props & {
variant: "primary" | "secondary";
};

export default function Button({ children, variant, className, ...rest }: ButtonProps) {
export default function Button({
children,
variant,
className,
...rest
}: ButtonProps) {
const Tag = "href" in rest ? Link : "button";
return (
<Tag
{...rest}
className={clsx(
"border font-semibold 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",
"bg-brand-500 text-gray-900 hover:bg-brand-600 border-brand-500 hover:border-brand-600 hover:text-gray-900",
variant === "secondary" &&
"border-gray-200 dark:border-gray-800 text-gray-900 dark:text-gray-50 bg-transparent hover:border-gray-900 dark:hover:border-gray-50 hover:text-gray-900 dark:hover:text-gray-50 aria-selected:border-gray-900 dark:aria-selected:border-gray-50",
className
className
)}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion src/components/HowToContribute/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function HowToContribute() {
to contribute. This{" "}
<Link
href="https://github.com/opentofu/opentofu/blob/main/CONTRIBUTING.md"
className="underline text-gray-900 dark:text-gray-50"
className="underline text-gray-900 hover:text-brand-700 dark:text-gray-50 dark:hover:text-brand-500"
>
contribution guide
</Link>{" "}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SupportersList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function SupportersList({ list }: SupportersListProps) {
href={supporter.url}
target="_blank"
rel="noopener noreferrer"
className="w-1/3 text-inherit font-bold text-gray-900 dark:text-gray-100"
className="w-1/3 text-inherit font-bold text-gray-900 hover:text-brand-700 dark:text-gray-100 dark:hover:text-brand-500"
aria-label={`Go to ${supporter.name} website`}
>
{supporter.name}
Expand Down

0 comments on commit fdfd19b

Please sign in to comment.