Skip to content

Commit

Permalink
fix: Some colors in honorable components are incorrect (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar authored Jun 21, 2023
1 parent e834d9c commit 8fbdcc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/theme/focus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ export const getFocusPartials = ({ mode }: { mode: ColorMode }) => {
boxShadow: boxShadows.focused,
},
outline: {
outline: `${borderWidths.focus}px solid ${semanticColorCssVars['border-outline-focused']}`,
'--outlineC': semanticColorCssVars['border-outline-focused'],
outline: `${borderWidths.focus}px solid var(--outlineC)`,
},
button: {
outline: `1px solid ${semanticColorCssVars['border-outline-focused']}`,
'--outlineC': semanticColorCssVars['border-outline-focused'],
outline: `1px solid var(--outlineC)}`,
outlineOffset: '-1px',
},
insetAbsolute: {
Expand Down
10 changes: 6 additions & 4 deletions src/theme/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,17 @@ const textPartials = {
textOverflow: 'ellipsis',
},
inlineLink: {
color: semanticColorCssVars['action-link-inline'],
'--inlineLinkC': semanticColorCssVars['action-link-inline'],
color: `var(--inlineLinkC)`,
textDecoration: 'underline',
'&:hover': {
color: semanticColorCssVars['action-link-inline-hover'],
'--inlineLinkC': semanticColorCssVars['action-link-inline-hover'],
},
'&:visited, &:active': {
color: semanticColorCssVars['action-link-inline-visited'],
'--inlineLinkC': semanticColorCssVars['action-link-inline-visited'],
'&:hover': {
color: semanticColorCssVars['action-link-inline-visited-hover'],
'--inlineLinkC':
semanticColorCssVars['action-link-inline-visited-hover'],
},
},
},
Expand Down

0 comments on commit 8fbdcc2

Please sign in to comment.