Skip to content

Commit 8125c65

Browse files
matthprostlisalupi
authored andcommitted
feat(Button): emotion removal vanilla extract (#5428)
* feat(Button): emotion removal vanilla extract * fix: unit tests and checks * fix: update prefix to add uv * fix: snapshot update
1 parent 7091562 commit 8125c65

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.storybook/components/DocsContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { ReactNode } from 'react'
1010
import { cloneElement, isValidElement, useState } from 'react'
1111
import { globalStyles } from './globalStyle'
1212
import '@ultraviolet/fonts/fonts.css'
13-
import { GlobalAlert } from '@ultraviolet/ui'
13+
import { GlobalAlert, ThemeProvider as ThemeProviderUV } from '@ultraviolet/ui'
1414

1515
type ExtraProps = {
1616
/**

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,12 @@ exports[`steppedListCard > should work with pre-completed step 1`] = `
522522
-webkit-box-align: center;
523523
-ms-flex-align: center;
524524
align-items: center;
525+
width: 2rem;
526+
height: 2rem;
527+
font-size: 1rem;
528+
color: #ffffff;
529+
background: #8c40ef;
530+
border: 1px solid #8c40ef;
525531
}
526532
527533
.emotion-6 {

packages/ui/src/theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
useTheme,
66
} from '@ultraviolet/themes'
77
import deepmerge from 'deepmerge'
8+
import { ThemeProvider, useTheme } from './ThemeProvider'
89

910
export type ScreenSize = keyof typeof consoleLightTheme.breakpoints
1011

packages/ui/vitest.setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import { setup } from '@utils/test'
2+
import '@vanilla-extract/css/disableRuntimeStyles'
23

34
setup()

0 commit comments

Comments
 (0)