Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Stop text-link forcing the brand color on colored surfaces (#3319)
posthog-eu[bot]5185e3c134eb
diff --git a/.claude/settings.local.json b/.claude/settings.local.jsonnew file mode 100644index 000000000..0967ef424--- /dev/null+++ b/.claude/settings.local.json@@ -0,0 +1 @@+{}diff --git a/apps/web/src/features/licensing/components/license-limit-warning.tsx b/apps/web/src/features/licensing/components/license-limit-warning.tsxindex f8efa8030..f0950ce8e 100644--- a/apps/web/src/features/licensing/components/license-limit-warning.tsx+++ b/apps/web/src/features/licensing/components/license-limit-warning.tsx@@ -38,7 +38,7 @@ export async function LicenseLimitWarning() {prefetch={false}href="https://support.rallly.co/self-hosting/licensing"target="_blank"- className="text-link"+ className="text-link-inherit"rel="noopener noreferrer"/>),diff --git a/packages/tailwind-config/shared-styles.css b/packages/tailwind-config/shared-styles.cssindex 504bc2805..3bdfc8529 100644--- a/packages/tailwind-config/shared-styles.css+++ b/packages/tailwind-config/shared-styles.css@@ -297,6 +297,13 @@@apply text-primary rounded-md font-medium outline-hidden hover:underline focus:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1;}+/* Link variant for colored or component-owned surfaces. It inherits the+ * surface text color instead of the space's brand color. The brand color is+ * customer-chosen, so the surface cannot predict it and it can fail contrast. */+@utility text-link-inherit {+ @apply rounded-md font-medium text-current outline-hidden hover:underline focus:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1;+}+@layer utilities {:root {--spacing: 0.25rem;diff --git a/packages/ui/src/alert.tsx b/packages/ui/src/alert.tsxindex 26d0d74ba..27c6dd293 100644--- a/packages/ui/src/alert.tsx+++ b/packages/ui/src/alert.tsx@@ -47,7 +47,7 @@ function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {<divdata-slot="alert-title"className={cn(- "font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",+ "font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3",className,)}{...props}@@ -63,7 +63,7 @@ function AlertDescription({<divdata-slot="alert-description"className={cn(- "text-pretty text-muted-foreground text-sm [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",+ "text-pretty text-muted-foreground text-sm [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4",className,)}{...props}diff --git a/packages/ui/src/markdown-description.tsx b/packages/ui/src/markdown-description.tsxindex 9f30257b6..1d9ac0b78 100644--- a/packages/ui/src/markdown-description.tsx+++ b/packages/ui/src/markdown-description.tsx@@ -52,7 +52,7 @@ export function MarkdownDescription({return (<divclassName={cn(- "space-y-2 text-pretty text-foreground text-sm leading-relaxed [&_a]:text-link [&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:list-disc [&_ul]:pl-5",+ "space-y-2 text-pretty text-foreground text-sm leading-relaxed [&_a]:text-link-inherit [&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:list-disc [&_ul]:pl-5",className,)}>diff --git a/packages/ui/src/rich-text-editor.tsx b/packages/ui/src/rich-text-editor.tsxindex 99cb73b69..94c2e6628 100644--- a/packages/ui/src/rich-text-editor.tsx+++ b/packages/ui/src/rich-text-editor.tsx@@ -110,7 +110,7 @@ export function RichTextEditor({"aria-labelledby": ariaLabelledBy ?? "",class: cn("min-h-24 w-full px-2.5 py-2 text-sm outline-none",- "[&_a]:text-link [&_a]:underline",+ "[&_a]:text-link-inherit [&_a]:underline","[&_ol]:list-decimal [&_ol]:pl-5 [&_ul]:list-disc [&_ul]:pl-5","[&_p]:leading-relaxed","[&_.is-editor-empty:first-child]:before:pointer-events-none [&_.is-editor-empty:first-child]:before:float-left [&_.is-editor-empty:first-child]:before:h-0 [&_.is-editor-empty:first-child]:before:text-muted-foreground [&_.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]",