Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/landings/components/CookBookArticleCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
gap: 0.25rem;
}

// The accent color belongs on the Primer React Link because h3 cannot override Link color.
// Also tints the icon. @primer/css base supplies the link's hover underline and focus ring.
// The underline offset matches the Primer React Link this replaced.
.linkAccent {
color: var(--brand-color-text-link-rest);
text-underline-offset: 0.05rem;
}

// bgColor-accent-muted resolves to Primer's blue wash, #388bfd1a in dark mode,
Expand Down
2 changes: 1 addition & 1 deletion src/landings/components/CookBookArticleCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Label } from '@primer/react-brand'
import { Link } from '@primer/react'
import { clsx } from 'clsx'
import { Link } from '@/frame/components/Link'
import { ValidOcticon, getOcticonComponent } from '../lib/octicons'

import styles from './CookBookArticleCard.module.scss'
Expand Down
5 changes: 3 additions & 2 deletions src/search/components/input/SearchOverlay.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { useState, useRef, RefObject, useEffect, useMemo } from 'react'
import cx from 'clsx'
import { useRouter } from 'next/router'
import { ActionList, IconButton, Overlay, Stack, TextInput, Banner } from '@primer/react'
import { ActionList, IconButton, Overlay, TextInput, Banner } from '@primer/react'
import { Stack } from '@primer/react-brand'
import { SearchIcon, XCircleFillIcon, CopilotIcon, ArrowLeftIcon } from '@primer/octicons-react'
import { focusTrap } from '@primer/behaviors'

Expand Down Expand Up @@ -685,7 +686,7 @@ export function SearchOverlay({
onKeyDown={handleKeyDown}
placeholder={t('search.input.placeholder_no_icon')}
trailingAction={
<Stack justify="center" className={styles.stackMinWidth}>
<Stack justifyContent="center" padding="none" className={styles.stackMinWidth}>
<TextInput.Action
onClick={() => {
setSelectedIndex(-1)
Expand Down
Loading