Skip to content

Commit 0664c6f

Browse files
authored
fix(ui): drop the overlay shadow class that never rendered before v4 (#7460)
1 parent 389eea4 commit 0664c6f

9 files changed

Lines changed: 8 additions & 12 deletions

File tree

apps/sim/app/(landing)/components/hero/components/hero-visual/hero-visual.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ export function HeroVisual() {
10811081
className={cn(
10821082
'absolute transform-gpu transition-[opacity,transform,width,height,top,left] will-change-transform [transition-duration:520ms] [transition-timing-function:cubic-bezier(0.22,1,0.36,1)]',
10831083
showKbShell &&
1084-
'overflow-hidden rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px] shadow-[var(--shadow-overlay)]'
1084+
'overflow-hidden rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px]'
10851085
)}
10861086
style={{
10871087
left: showKbShell

apps/sim/app/(landing)/components/hero/components/hero-visual/stage-kb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export function KnowledgeBasePanel({
175175
return (
176176
<div
177177
className={cn(
178-
'w-full max-w-[420px] rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px] shadow-[var(--shadow-overlay)]',
178+
'w-full max-w-[420px] rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px]',
179179
'animate-hero-modal-in motion-reduce:animate-none'
180180
)}
181181
>

apps/sim/app/(landing)/components/navbar/components/nav-menu-chip/nav-menu-chip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function NavMenuChip({ menu }: NavMenuChipProps) {
7777
</button>
7878

7979
<div className={cn(PANEL_BASE, !closed && PANEL_REVEAL)}>
80-
<div className='w-[840px] rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px] shadow-[var(--shadow-overlay)]'>
80+
<div className='w-[840px] rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px]'>
8181
<div className='rounded-lg border border-[var(--border-1)] bg-[var(--bg)] p-2'>
8282
<div className='grid grid-cols-3 gap-1' role='group' aria-label={label}>
8383
{items.map((item) => (

apps/sim/app/workspace/[workspaceId]/integrations/components/integrations-showcase/integrations-showcase.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ export function IntegrationTile({ blockType, icon: Icon, framed = false }: Integ
101101
*/
102102
export function IntegrationsShowcase() {
103103
return (
104-
<div
105-
aria-hidden
106-
className='relative h-[144px] w-full overflow-hidden rounded-xl shadow-[var(--shadow-overlay)]'
107-
>
104+
<div aria-hidden className='relative h-[144px] w-full overflow-hidden rounded-xl'>
108105
<div
109106
className='absolute inset-0 bg-[var(--surface-4)] dark:bg-[var(--surface-5)]'
110107
style={{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ function SearchModalContent({
13171317
aria-hidden={!visuallyOpen}
13181318
aria-label='Search'
13191319
className={cn(
1320-
'-translate-x-1/2 fixed top-[15%] z-[var(--z-modal)] w-[min(500px,calc(100%-32px))] rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px] shadow-[var(--shadow-overlay)] dark:bg-[var(--surface-5)]',
1320+
'-translate-x-1/2 fixed top-[15%] z-[var(--z-modal)] w-[min(500px,calc(100%-32px))] rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px] dark:bg-[var(--surface-5)]',
13211321
visuallyOpen ? 'visible opacity-100' : 'invisible opacity-0'
13221322
)}
13231323
style={{

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/status-notice/status-notice.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ describe('StatusNotice', () => {
8282
const notice = container.querySelector('[role="alert"]')
8383
const action = container.querySelector<HTMLAnchorElement>('a')
8484
expect(notice?.className).toContain('border-[var(--terminal-status-error-border)]')
85-
expect(notice?.className).toContain('shadow-[var(--shadow-overlay)]')
8685
expect(notice?.className).toContain(
8786
'[--surface-hover:color-mix(in_srgb,var(--text-error)_8%,transparent)]'
8887
)

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/status-notice/status-notice.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function StatusAlert() {
1818
return (
1919
<div
2020
role='alert'
21-
className='flex w-full flex-col gap-2 rounded-xl border border-[var(--terminal-status-error-border)] bg-[var(--terminal-status-error-bg)] p-2 shadow-[var(--shadow-overlay)] [--surface-hover:color-mix(in_srgb,var(--text-error)_8%,transparent)]'
21+
className='flex w-full flex-col gap-2 rounded-xl border border-[var(--terminal-status-error-border)] bg-[var(--terminal-status-error-bg)] p-2 [--surface-hover:color-mix(in_srgb,var(--text-error)_8%,transparent)]'
2222
>
2323
<div className='flex min-w-0 items-center gap-1.5'>
2424
<CircleAlert className='size-[16px] shrink-0 text-[var(--text-icon)]' />

packages/emcn/src/components/chip-modal/chip-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function ChipModal({
250250
>
251251
<div
252252
className={cn(
253-
'flex min-h-0 w-full flex-col rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px] shadow-[var(--shadow-overlay)] dark:bg-[var(--surface-5)]',
253+
'flex min-h-0 w-full flex-col rounded-xl border border-[var(--border-muted)] bg-[var(--surface-4)] p-[3px] dark:bg-[var(--surface-5)]',
254254
className
255255
)}
256256
>

packages/emcn/src/components/toast/toast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ function ToastItem({ toast: t, geometry, reduceMotion, onDismiss, onMeasure }: T
405405
width: TOAST_WIDTH,
406406
borderRadius: cornerRadius,
407407
}}
408-
className='pointer-events-auto absolute right-0 bottom-0 m-0 overflow-hidden border border-[var(--border-1)] bg-[var(--bg)] shadow-[var(--shadow-overlay)]'
408+
className='pointer-events-auto absolute right-0 bottom-0 m-0 overflow-hidden border border-[var(--border-1)] bg-[var(--bg)]'
409409
>
410410
<div ref={contentRef} className='flex flex-col gap-2 p-2'>
411411
<div className='flex items-start gap-2'>

0 commit comments

Comments
 (0)