Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VanishMax committed Dec 10, 2024
1 parent 4a51034 commit e3779a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/ui/src/utils/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const COLOR_CLASS_MAP: Record<ThemeColor, [string, string]> = {
'success.dark': ['text-success-dark', 'bg-success-dark'],
'success.contrast': ['text-success-contrast', 'bg-success-contrast'],
'base.black': ['text-base-black', 'bg-base-black'],
'base.blackAlt': ['text-base-blackAlt', 'bg-base-blackAlt'],
'base.white': ['text-base-white', 'bg-base-white'],
'base.transparent': ['text-base-transparent', 'bg-base-transparent'],
'text.primary': ['text-text-primary', 'bg-text-primary'],
Expand Down Expand Up @@ -91,6 +92,10 @@ export const COLOR_CLASS_MAP: Record<ThemeColor, [string, string]> = {
'text-action-destructiveFocusOutline',
'bg-action-destructiveFocusOutline',
],
'action.successFocusOutline': [
'text-action-successFocusOutline',
'bg-action-successFocusOutline',
],
'other.tonalStroke': ['text-other-tonalStroke', 'bg-other-tonalStroke'],
'other.tonalFill5': ['text-other-tonalFill5', 'bg-other-tonalFill5'],
'other.tonalFill10': ['text-other-tonalFill10', 'bg-other-tonalFill10'],
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/utils/menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const OUTLINE_COLOR_MAP: Record<ActionType, string> = {
accent: cn('[&:focus:not(:disabled)]:outline-action-primaryFocusOutline'),
unshield: cn('[&:focus:not(:disabled)]:outline-action-unshieldFocusOutline'),
destructive: cn('[&:focus:not(:disabled)]:outline-action-destructiveFocusOutline'),
success: cn('[&:focus:not(:disabled)]:outline-action-successFocusOutline'),
};

export const getMenuItem = (actionType: ActionType): string =>
Expand Down

0 comments on commit e3779a7

Please sign in to comment.