Skip to content

Commit

Permalink
card elevation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilad Gray committed Apr 19, 2018
1 parent df20ae8 commit 0a93bbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions packages/core/src/components/card/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ A card is a bounded unit of UI content with a solid background color.

@## CSS API

Start with `.@ns-card` and add an elevation modifier class to apply a drop shadow that simulates
height in the UI.
Start with `.@ns-card` and add an elevation modifier class to apply a drop
shadow that simulates height in the UI.

You can also use the `.@ns-elevation-*` classes by themselves to apply shadows to any arbitrary
element.
You can also use the `.@ns-elevation-*` classes by themselves to apply shadows
to any arbitrary element.

@css card

@### Interactive cards

Add the `.@ns-interactive` modifier class to make a `.@ns-card` respond to user interactions. When you
hover over cards with this class applied, the mouse changes to a pointer and the elevation shadow on
the card increases to the maximum level.
Add the `.@ns-interactive` modifier class to make a `.@ns-card` respond to user
interactions. When you hover over cards with this class applied, the mouse
changes to a pointer and increases the elevation shadow on the card.

Users expect an interactive card to be a single clickable unit.

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface ICardProps extends IProps, HTMLDivProps {

/**
* Whether the card should respond to user interactions. If set to `true`,
* hovering over the card will increase the card's elevation to the maximum
* hovering over the card will increase the card's elevation
* and change the mouse cursor to a pointer.
*
* Recommended when `onClick` is also defined.
Expand Down

1 comment on commit 0a93bbd

@blueprint-bot
Copy link

Choose a reason for hiding this comment

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

card elevation docs

Preview: documentation | landing | table | github pages

Please sign in to comment.