Skip to content

Commit d76ffe2

Browse files
committed
fix(enrichments): consistent close button pattern and fix url link hover
1 parent 34a9ca5 commit d76ffe2

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/enrichments-sidebar/enrichments-sidebar.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { useState } from 'react'
4-
import { Button, Input } from '@/components/emcn'
4+
import { Input } from '@/components/emcn'
55
import { Search, X } from '@/components/emcn/icons'
66
import { cn } from '@/lib/core/utils/cn'
77
import type { ColumnDefinition, WorkflowGroup } from '@/lib/table'
@@ -74,15 +74,14 @@ function EnrichmentsSidebarBody({
7474
<div className='flex h-full flex-col'>
7575
<div className='flex items-center justify-between border-[var(--border)] border-b px-3 py-[8.5px]'>
7676
<h2 className='font-medium text-[var(--text-primary)] text-small'>Enrichment</h2>
77-
<Button
78-
variant='ghost'
79-
size='sm'
77+
<button
78+
type='button'
8079
onClick={onClose}
81-
className='!p-1 size-7 flex-none'
80+
className='flex size-7 flex-none items-center justify-center rounded-md text-[var(--text-muted)] transition-colors hover-hover:bg-[var(--surface-hover)] hover-hover:text-[var(--text-primary)]'
8281
aria-label='Close'
8382
>
8483
<X className='size-[14px]' />
85-
</Button>
84+
</button>
8685
</div>
8786
<div className='flex flex-1 items-center justify-center px-6 text-center'>
8887
<p className='text-[var(--text-tertiary)] text-small'>

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/cells/cell-render.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export function CellRender({ kind, isEditing }: CellRenderProps): React.ReactEle
320320
target='_blank'
321321
rel='noopener noreferrer'
322322
className={cn(
323-
'min-w-0 overflow-clip text-ellipsis text-[var(--text-primary)] underline underline-offset-2 hover:opacity-70',
323+
'min-w-0 overflow-clip text-ellipsis text-[var(--text-primary)] underline underline-offset-2 transition-colors hover-hover:text-[var(--text-secondary)]',
324324
isEditing && 'pointer-events-none'
325325
)}
326326
onClick={(e) => e.stopPropagation()}

0 commit comments

Comments
 (0)