diff --git a/app/components/Sidebar.tsx b/app/components/Sidebar.tsx index b1e61c126c..5484ecfa97 100644 --- a/app/components/Sidebar.tsx +++ b/app/components/Sidebar.tsx @@ -15,7 +15,7 @@ import { Button } from '~/ui/lib/Button' import { Truncate } from '~/ui/lib/Truncate' const linkStyles = - 'flex h-7 items-center rounded px-2 text-sans-md hover:bg-hover svg:mr-2 svg:text-quinary text-secondary' + 'flex h-7 items-center rounded px-2 text-sans-md hover:bg-hover [&>svg]:mr-2 [&>svg]:text-quinary text-secondary' // TODO: this probably doesn't go to the docs root. maybe it even opens a // menu with links to several relevant docs for the page @@ -97,7 +97,7 @@ export const NavLinkItem = (props: { to={props.to} className={({ isActive }) => cn(linkStyles, { - 'text-accent !bg-accent-secondary hover:!bg-accent-secondary-hover svg:!text-accent-tertiary': + 'text-accent !bg-accent-secondary hover:!bg-accent-secondary-hover [&>svg]:!text-accent-tertiary': isActive || currentPathIsCreateForm, 'pointer-events-none text-disabled': props.disabled, }) diff --git a/app/ui/lib/Button.tsx b/app/ui/lib/Button.tsx index 417e3e52a1..1ced212a58 100644 --- a/app/ui/lib/Button.tsx +++ b/app/ui/lib/Button.tsx @@ -19,10 +19,10 @@ export type ButtonSize = (typeof buttonSizes)[number] export type Variant = (typeof variants)[number] const sizeStyle: Record = { - sm: 'h-8 px-3 text-mono-sm svg:w-4', + sm: 'h-8 px-3 text-mono-sm [&>svg]:w-4', // meant for buttons that only contain a single icon - icon: 'h-8 w-8 text-mono-sm svg:w-4', - base: 'h-10 px-4 text-mono-sm svg:w-5', + icon: 'h-8 w-8 text-mono-sm [&>svg]:w-4', + base: 'h-10 px-4 text-mono-sm [&>svg]:w-5', } type ButtonStyleProps = { diff --git a/app/ui/lib/Message.tsx b/app/ui/lib/Message.tsx index 983f712a45..129d7e40ad 100644 --- a/app/ui/lib/Message.tsx +++ b/app/ui/lib/Message.tsx @@ -83,7 +83,9 @@ export const Message = ({ className )} > -
{icon || defaultIcon[variant]}
+
+ {icon || defaultIcon[variant]} +
{title &&
{title}
}