Skip to content

Commit

Permalink
ensensure card foreground color responds to fill color changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt committed Aug 18, 2021
1 parent d65c090 commit e9035b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-components/src/card/card.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@microsoft/fast-foundation';
import { SystemColors } from '@microsoft/fast-web-utilities';
import { elevation } from '../styles';
import { fillColor, layerCornerRadius } from '../design-tokens';
import { fillColor, layerCornerRadius, neutralForegroundRest } from '../design-tokens';

export const cardStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles =
(context: ElementDefinitionContext, definition: FoundationElementDefinition) =>
Expand All @@ -20,6 +20,7 @@ export const cardStyles: (context: ElementDefinitionContext, definition: Foundat
width: var(--card-width, 100%);
box-sizing: border-box;
background: ${fillColor};
color: ${neutralForegroundRest}
border-radius: calc(${layerCornerRadius} * 1px);
${elevation}
}
Expand Down

0 comments on commit e9035b5

Please sign in to comment.