Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
fix: correct white priority
Browse files Browse the repository at this point in the history
  • Loading branch information
Шараев Айнур Раильевич committed Jul 6, 2021
1 parent 5a9f20d commit f694871
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const Global = styled.div`
${createPriority({
priorityName: 'white',
bwPaletteName: 'bw',
weight: 'outline',
weight: 'transparent',
})}
${createPriority({
Expand Down
9 changes: 5 additions & 4 deletions src/lib/priority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface PriorityType {
bwPaletteName: string;
paletteName?: string;
priorityName: string;
weight: 'fill' | 'outline';
weight: 'fill' | 'transparent';
}

export const createPriority = ({
Expand All @@ -21,10 +21,10 @@ export const createPriority = ({
'shape-hover': 'transparent',
'shape-active': 'transparent',

'shape-text-default': `hsla(var(--${bwPaletteName}-0), 1)`,
'shape-text-default': `hsla(var(--${bwPaletteName}-1000), 1)`,
'shape-text-disabled': `hsla(var(--${palette}-300), 1)`,
'shape-text-hover': `hsla(var(--${bwPaletteName}-600), 1)`,
'shape-text-active': `hsla(var(--${bwPaletteName}-700), 1)`,
'shape-text-hover': `hsla(var(--${bwPaletteName}-400), 1)`,
'shape-text-active': `hsla(var(--${bwPaletteName}-500), 1)`,

'canvas-default': `transparent`,
'canvas-disabled': `hsla(var(--${bwPaletteName}-200), 1)`,
Expand All @@ -49,6 +49,7 @@ export const createPriority = ({

colors['canvas-hover'] = `hsla(var(--${palette}-600), 1)`;
colors['canvas-active'] = `hsla(var(--${palette}-700), 1)`;

colors['canvas-text-hover'] = `hsla(var(--${bwPaletteName}-0), 1)`;
colors['canvas-text-active'] = `hsla(var(--${bwPaletteName}-0), 1)`;
}
Expand Down

0 comments on commit f694871

Please sign in to comment.