Skip to content

Commit

Permalink
fix(CardPrimaryAction): Adding missing ripple.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Friedman committed Mar 19, 2018
1 parent 6a8921d commit f9e2834
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Button } from '../Button';
import { Ripple } from '../Ripple';
import { Icon } from '../Icon';
import { IconToggle } from '../IconToggle';
import { simpleTag } from '../Base';
import { simpleTag, withRipple } from '../Base';
import type { SimpleTagPropsT } from '../Base';

/****************************************************************
Expand Down Expand Up @@ -68,10 +68,12 @@ export const CardMediaContent = simpleTag({
});

/** The main clickable area fro the primary content of the card */
export const CardPrimaryAction = simpleTag({
displayName: 'CardPrimaryAction',
classNames: 'mdc-card__primary-action'
});
export const CardPrimaryAction = withRipple({ surface: false })(
simpleTag({
displayName: 'CardPrimaryAction',
classNames: 'mdc-card__primary-action'
})
);

type CardActionsT = {
/** Removes the action area’s padding and causes its only child (an mdc-card__action element) to consume 100% of the action area’s width */
Expand Down

0 comments on commit f9e2834

Please sign in to comment.