Skip to content

Commit

Permalink
fix: correct fileStatus gradient usage in recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
@casey_baggz_omni committed Sep 19, 2024
1 parent 7f47b26 commit 55b08cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/panda-preset/src/recipes/slots/fileStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ export const fileStatus: Partial<SlotRecipeConfig> = defineSlotRecipe({
todo: {
icon: {
...action,
cerbGradient: 'purple',
color: 'colorPalette.text.inverse',
cerbGradient: 'dark-purple',
color: 'action.text.initial',
},
},
processing: {
icon: {
...action,
cerbGradient: 'purple',
color: 'colorPalette.text.inverse',
cerbGradient: 'dark-purple',
color: 'action.text.initial',
},
},
done: {
icon: {
...success,
cerbGradient: 'green',
color: 'colorPalette.text.200',
color: 'colorPalette.text.static',
},
},
error: {
Expand Down
10 changes: 5 additions & 5 deletions tests/panda-preset/recipes/slots/fileStatus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ describe('fileStatus recipe', () => {

test('should have a todo status variant', () => {
expect(fileStatus.variants?.status?.todo?.icon).toMatchObject({
cerbGradient: 'purple',
color: 'colorPalette.text.inverse',
cerbGradient: 'dark-purple',
color: 'action.text.initial',
})
})

test('should have a processing status variant', () => {
expect(fileStatus.variants?.status?.processing?.icon).toMatchObject({
cerbGradient: 'purple',
color: 'colorPalette.text.inverse',
cerbGradient: 'dark-purple',
color: 'action.text.initial',
})
})

test('should have a done status variant', () => {
expect(fileStatus.variants?.status?.done?.icon).toMatchObject({
cerbGradient: 'green',
color: 'colorPalette.text.200',
color: 'colorPalette.text.static',
})
})

Expand Down

0 comments on commit 55b08cd

Please sign in to comment.