@@ -20,19 +20,20 @@ type Props = {
2020 highlighted : HighlightedCode
2121 showPanel ?: boolean
2222 className ?: string
23- copyButtonClassName ?: string
2423} & HandlerProps
2524
2625const Pre : React . FC < Props > = ( {
2726 highlighted,
2827 showPanel,
2928 enableTransitions,
3029 className,
31- copyButtonClassName,
3230} ) => {
3331 const { title } = meta ( highlighted )
3432
3533 let handlers = [ callout , fold , collapse , collapseTrigger , collapseContent ]
34+
35+ // Getting an issue with color transitions on the -code-text token
36+ // Note: this also won't work with the Tabs component, only the CodeSwitcherSelect
3637 if ( enableTransitions ) {
3738 handlers = [ ...handlers , tokenTransitions ]
3839 }
@@ -47,23 +48,23 @@ const Pre: React.FC<Props> = ({
4748 < div className = "relative flex h-9 items-center justify-start pr-12 font-display text-2xs text-zinc-300 sm:text-xs" >
4849 { /* one-off breakpoint to hide the filename on extremely narrow screens - to avoid interfering with the lang select */ }
4950 < div className = "relative flex h-full items-center justify-center gap-x-1 px-4" >
50- < div className = "size-[6px] rounded-full bg-zinc-300/10" />
51- < div className = "size-[6px] rounded-full bg-zinc-300/10" />
52- < div className = "size-[6px] rounded-full bg-zinc-300/10" />
51+ < div className = "size-[6px] rounded-full bg-zinc-300 dark:bg-zinc-300 /10" />
52+ < div className = "size-[6px] rounded-full bg-zinc-300 dark:bg-zinc-300 /10" />
53+ < div className = "size-[6px] rounded-full bg-zinc-300 dark:bg-zinc-300 /10" />
5354 </ div >
54- < div className = "absolute bottom-0 h-[1px] w-full bg-zinc-300/5" />
55+ < div className = "absolute bottom-0 h-px w-full bg-zinc-200 dark: bg-zinc-300/5" />
5556 </ div >
5657 ) }
5758 { showFileNamePanel && (
58- < div className = "relative flex h-10 items-center justify-start pr-12 font-display text-2xs text-zinc-300 sm:text-xs" >
59+ < div className = "relative flex h-10 items-center justify-start pr-12 font-display text-2xs dark: text-zinc-300 sm:text-xs" >
5960 { /* one-off breakpoint to hide the filename on extremely narrow screens - to avoid interfering with the lang select */ }
60- < div className = "relative flex h-full items-center border-r border-zinc-300/5" >
61+ < div className = "relative flex h-full items-center border-r dark: border-zinc-300/5" >
6162 < span className = "hidden whitespace-nowrap px-4 py-2 min-[320px]:block" >
6263 { title }
6364 </ span >
64- < div className = "absolute bottom-0 h-[1px] w-full bg-primary-300" />
65+ < div className = "absolute bottom-0 z-10 h-px w-full bg-primary-300" />
6566 </ div >
66- < div className = "absolute bottom-0 h-[1px] w-full bg-zinc-300/5" />
67+ < div className = "absolute bottom-0 h-px w-full bg-zinc-200 dark: bg-zinc-300/5" />
6768 </ div >
6869 ) }
6970 < CopyButton
0 commit comments