Skip to content

Commit

Permalink
fix(ArticleCard): add missing styles for subtitle on dark cards (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonjoseph authored Sep 24, 2019
1 parent 38fe06b commit 7719fba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/example/src/pages/components/ArticleCard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ The `<ArticleCard>` component should generally be used inside of a `<Row>` and `
</Column>
<Column colMd={4} colLg={4} noGutterMdLeft>
<ArticleCard
subTitle="subTitle"
title="Explore & Create"
author="Josh Black"
readTime="Read time: 5 min"
Expand All @@ -77,6 +78,7 @@ The `<ArticleCard>` component should generally be used inside of a `<Row>` and `
</Column>
<Column colMd={4} colLg={4} noGutterMdLeft>
<ArticleCard
subTitle="subTitle"
title="Explore & Create"
author="Josh Black"
date="April 29, 2019"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
background: $carbon--gray-80; //$hover-ui for gray 90 theme
}

.#{$prefix}--article-card--dark .#{$prefix}--article-card__title {
.#{$prefix}--article-card--dark .#{$prefix}--article-card__title,
.#{$prefix}--article-card--dark .#{$prefix}--article-card__subtitle {
color: $text-04;
}

Expand All @@ -89,6 +90,7 @@
}

.#{$prefix}--article-card--disabled .#{$prefix}--article-card__title,
.#{$prefix}--article-card--disabled .#{$prefix}--article-card__subtitle,
.#{$prefix}--article-card--disabled .#{$prefix}--article-card__info {
color: $disabled-03;
}
Expand All @@ -107,6 +109,8 @@

.#{$prefix}--article-card--disabled.#{$prefix}--article-card--dark
.#{$prefix}--article-card__title,
.#{$prefix}--article-card--disabled.#{$prefix}--article-card--dark
.#{$prefix}--article-card__subtitle,
.#{$prefix}--article-card--disabled.#{$prefix}--article-card--dark
.#{$prefix}--article-card__info {
color: $carbon--gray-50; //$disabled-03 for gray 90
Expand Down

1 comment on commit 7719fba

@vercel
Copy link

@vercel vercel bot commented on 7719fba Sep 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.