Skip to content

Commit a69d502

Browse files
committed
feat: vanilla extract on badge and actionBar (#5461)
* feat: vanilla extract on badge and actionBar * fix: create vanilla extract fadeIn animation
1 parent 83da7b6 commit a69d502

File tree

12 files changed

+9941
-2156
lines changed

12 files changed

+9941
-2156
lines changed

packages/plus/src/components/EstimateCost/__tests__/__snapshots__/Regular.test.tsx.snap

Lines changed: 572 additions & 66 deletions
Large diffs are not rendered by default.

packages/plus/src/components/EstimateCost/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 7315 additions & 1382 deletions
Large diffs are not rendered by default.

packages/plus/src/components/OfferList/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 127 additions & 158 deletions
Large diffs are not rendered by default.

packages/plus/src/components/Plans/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 1320 additions & 361 deletions
Large diffs are not rendered by default.

packages/ui/src/components/ActionBar/index.tsx

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

3-
import { assignInlineVars } from '@vanilla-extract/dynamic'
3+
import { theme } from '@ultraviolet/themes'
44
import type { ReactNode } from 'react'
55
import { createPortal } from 'react-dom'
66
import { Stack } from '../Stack'
7-
import { actionBar, rankActionBar, stackActionBar } from './styles.css'
7+
import { actionBar, stackActionBar } from './styles.css'
88

99
type ActionBarProps = {
1010
children: ReactNode
@@ -36,9 +36,9 @@ export const ActionBar = ({
3636
className={`${className ? `${className} ` : ''}${actionBar}`}
3737
data-testid={dataTestId}
3838
role={role}
39-
style={assignInlineVars({
40-
[rankActionBar]: `${rank}`,
41-
})}
39+
style={{
40+
bottom: `calc(${theme.sizing['700']} * ${rank} + ${theme.space['2']})`,
41+
}}
4242
>
4343
<Stack alignItems="center" className={stackActionBar}>
4444
{children}

packages/ui/src/components/ActionBar/styles.css.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { theme } from '@ultraviolet/themes'
22
import { fadeInVanillaExtract } from '../../utils'
3-
import { createVar, style } from '@vanilla-extract/css'
4-
5-
export const rankActionBar = createVar()
3+
import { style } from '@vanilla-extract/css'
64

75
export const stackActionBar = style({
86
height: '100%',
@@ -19,5 +17,4 @@ export const actionBar = style({
1917
position: 'fixed',
2018
transform: 'translate(-50%, 0)',
2119
width: '37.5rem',
22-
bottom: `calc(${theme.sizing['700']} * ${rankActionBar} + ${theme.space['2']})`,
2320
})

0 commit comments

Comments
 (0)