Skip to content

Commit 58f90ed

Browse files
committed
improvement(search): use font-medium for matched-text emphasis in cmd+k
Drop the colored background highlight in favor of the design system's standard emphasis weight (font-medium, used by Button/Label/Input/Table). Lighter than the previous semibold and avoids a background, keeping the palette's clean, undecorated text style.
1 parent 2360232 commit 58f90ed

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/components/command-items

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/components/command-items/command-items.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ export const HighlightedText = memo(
4242
<>
4343
{buildSegments(text, positions).map((segment, index) =>
4444
segment.hit ? (
45-
<span
46-
key={index}
47-
className='bg-[var(--highlight-match-bg)] text-[var(--highlight-match-text)]'
48-
>
45+
<span key={index} className='font-medium'>
4946
{segment.text}
5047
</span>
5148
) : (

0 commit comments

Comments
 (0)