Skip to content

Commit

Permalink
fix: update feature-card styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone committed May 30, 2019
1 parent a4c216f commit b70e38f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
12 changes: 12 additions & 0 deletions packages/example/src/pages/components/FeatureCard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ The `<FeatureCard>` component takes the same props as the `<ResourceCard>` compo

</FeatureCard>

<FeatureCard
subTitle="With subtitle"
title="Title"
actionIcon="arrowRight"
href="/"
color="dark"
>

![smart work](/images/smart-work.png)

</FeatureCard>

## Code

```
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/gatsby-theme-carbon/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ module.exports = themeOptions => {
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1184,
maxWidth: 1170,
linkImagesToOriginal: false,
tracedSVG: true,
quality: 75,
},
},
{ resolve: `gatsby-remark-responsive-iframe` },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { Link } from 'gatsby';
import { settings } from 'carbon-components';
import { Row, Column } from '../Grid';
import ResourceCard from '../ResourceCard';
import { settings } from 'carbon-components';

const { prefix } = settings;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@

.#{$prefix}--feature-card__img {
position: relative;
margin-left: -1px;
margin-right: -1px;
}

.#{$prefix}--feature-card:hover
.#{$prefix}--feature-card__link
.#{$prefix}--tile {
Expand Down Expand Up @@ -70,6 +67,7 @@
width: auto !important;
left: auto !important;
right: 0;
object-fit: cover;
}
}

Expand Down

0 comments on commit b70e38f

Please sign in to comment.