diff --git a/docs/app/assets/images/card-placeholder-lg.png b/docs/app/assets/images/card-placeholder-lg.png index b651c278c1..e069d7bf9c 100644 Binary files a/docs/app/assets/images/card-placeholder-lg.png and b/docs/app/assets/images/card-placeholder-lg.png differ diff --git a/docs/app/assets/images/card-placeholder-sm.png b/docs/app/assets/images/card-placeholder-sm.png index 580b9b7ccb..e354206a7e 100644 Binary files a/docs/app/assets/images/card-placeholder-sm.png and b/docs/app/assets/images/card-placeholder-sm.png differ diff --git a/docs/app/views/examples/components/empty_state/_preview.html.erb b/docs/app/views/examples/components/empty_state/_preview.html.erb index cf18c50378..f033a770f5 100644 --- a/docs/app/views/examples/components/empty_state/_preview.html.erb +++ b/docs/app/views/examples/components/empty_state/_preview.html.erb @@ -20,7 +20,7 @@

With Graphic

<%= sage_component SageEmptyState, { - graphic: image_tag("empty-state-sm.svg", alt: ""), + graphic: image_tag("card-placeholder-lg.png", alt: ""), title: "Title for state, with graphic instead of icon", text: "Text to appear below. Lorem ipsum dolor sit amet consectituor.", } do %> diff --git a/docs/app/views/examples/components/list/_preview.html.erb b/docs/app/views/examples/components/list/_preview.html.erb index 998fb90be2..6958351c1d 100644 --- a/docs/app/views/examples/components/list/_preview.html.erb +++ b/docs/app/views/examples/components/list/_preview.html.erb @@ -124,7 +124,7 @@ Note that this example also implements the [Reveal utility class](#{pages_helper css_classes: SageClassnames::REVEAL_CONTAINER, } do %> <%= sage_component SageCardRow, { grid_template: "ete" } do %> - + <%= sage_component SageCardBlock, {} do %>

<%= item[:name] %>

Item <%= item[:id] %> specs

@@ -161,7 +161,7 @@ Note that this example also implements the [Reveal utility class](#{pages_helper more_actions: { items: dropdown_items(item[:id]) }, } do %> <%= sage_component SageCardRow, { grid_template: "ete" } do %> - + <%= sage_component SageCardBlock, {} do %> <%= sage_component SageLink, { spacer: { bottom: "2xs" }, diff --git a/docs/app/views/examples/components/media_tile/_preview.html.erb b/docs/app/views/examples/components/media_tile/_preview.html.erb index c0eb17fea4..dc7e7a48c5 100644 --- a/docs/app/views/examples/components/media_tile/_preview.html.erb +++ b/docs/app/views/examples/components/media_tile/_preview.html.erb @@ -32,7 +32,7 @@ panels = [ caption: %(

Vivamus dictum rutrum dui, nec placerat ante

), - media: %(Image of Product Abra), + media: %(Image of Product Abra), title: "Product Abra", }, { @@ -44,7 +44,7 @@ panels = [ caption: %(

Suspendisse eu tellus quis arcu sagittis semper

), - media: %(Image of Product Cadabra), + media: %(Image of Product Cadabra), title: "Product Cadabra", }, { @@ -56,7 +56,7 @@ panels = [ caption: %(

Maecenas vitae leo eu tellus efficitur viverra sit amet ut tortor vestibulum

), - media: %(Image of Product Jimminycricket), + media: %(Image of Product Jimminycricket), title: "Product Jimminycricket", }, ] @@ -155,7 +155,7 @@ NOTE: the examples below omit `media` but this can safely be used as well with t title_tag: "h2", } do %> <%= content_for :sage_media_tile_media do %> - MEDIA Image of Product Abra + MEDIA Image of Product Abra <% end %> <%= content_for :sage_media_tile_actions_custom do %> <%= sage_component SageBadge, { value: "CUSTOM Draft", color: "draft" } %> diff --git a/packages/sage-assets/lib/stylesheets/components/_page_heading.scss b/packages/sage-assets/lib/stylesheets/components/_page_heading.scss index 45ef8ab244..998e7ba6ce 100644 --- a/packages/sage-assets/lib/stylesheets/components/_page_heading.scss +++ b/packages/sage-assets/lib/stylesheets/components/_page_heading.scss @@ -84,7 +84,7 @@ $-page-heading-image-height-mobile: rem(120px); grid-area: image; overflow: hidden; min-height: $-page-heading-image-height-min; - background: sage-color(grey, 300); + background: sage-color(grey, 30); border-radius: sage-border(radius); border: sage-border(); diff --git a/packages/sage-react/lib/Card/Card.story.jsx b/packages/sage-react/lib/Card/Card.story.jsx index 8361f78b1c..7d8a1c8200 100644 --- a/packages/sage-react/lib/Card/Card.story.jsx +++ b/packages/sage-react/lib/Card/Card.story.jsx @@ -8,6 +8,8 @@ import { Link } from '../Link'; import { Card } from './Card'; import { Frame } from '../Frame'; +import placeholderImg from '../../public/CardPlaceholderLarge.png'; + export default { title: 'Sage/Card', component: Card, @@ -122,7 +124,7 @@ Default.args = { Figure (with side bleed) - + Divider diff --git a/packages/sage-react/lib/Choice/Choice.story.jsx b/packages/sage-react/lib/Choice/Choice.story.jsx index 1c7032b176..1279725dfd 100644 --- a/packages/sage-react/lib/Choice/Choice.story.jsx +++ b/packages/sage-react/lib/Choice/Choice.story.jsx @@ -3,6 +3,7 @@ import { selectArgs } from '../story-support/helpers'; import { SageTokens } from '../configs'; import { Avatar } from '../Avatar'; import { Choice } from './Choice'; +import placeholderImg from '../../public/CardPlaceholderSmall.png'; // Default Sandbox export default { @@ -113,7 +114,7 @@ export const WiredIcon = () => { export const Graphic = () => (
( export const LinkText = () => (
# Empty State @@ -79,7 +81,7 @@ The Empty State component has two sizes: default and `compact`. The default size )} - graphic={()} + graphic={()} title="Create your first Email Campaign" titleTag="h1" text={(

@@ -89,4 +91,4 @@ The Empty State component has two sizes: default and `compact`. The default size

)} /> - \ No newline at end of file + diff --git a/packages/sage-react/lib/Frame/Frame.story.jsx b/packages/sage-react/lib/Frame/Frame.story.jsx index c9d1458d37..fad57c1be9 100644 --- a/packages/sage-react/lib/Frame/Frame.story.jsx +++ b/packages/sage-react/lib/Frame/Frame.story.jsx @@ -4,6 +4,8 @@ import { SageClassnames, SageTokens } from '../configs'; import { Button, Label, Property } from '..'; import { Frame } from './Frame'; +import placeholderImg from '../../public/CardPlaceholderLarge.png'; + export default { title: 'Sage/Frame', component: Frame, @@ -91,7 +93,7 @@ export const NestingFrames = () => ( align={Frame.ALIGNMENTS.CENTER_LEFT} > - + @@ -195,7 +197,7 @@ export const CustomBlock = () => ( - + ); diff --git a/packages/sage-react/lib/List/List.story.jsx b/packages/sage-react/lib/List/List.story.jsx index 47cdc4ace6..8b34d5a877 100644 --- a/packages/sage-react/lib/List/List.story.jsx +++ b/packages/sage-react/lib/List/List.story.jsx @@ -9,6 +9,7 @@ import { OptionsDropdown } from '../Dropdown'; import { Property } from '../Property'; import { List } from './List'; import { ListItem } from './ListItem'; +import placeholderImg from '../../public/CardPlaceholderLarge.png'; import { sampleItems, sampleItemRenderer, @@ -81,7 +82,7 @@ export const otherActionItems = () => ( > + ), tileLink: { href: '//example.com', diff --git a/packages/sage-react/lib/MediaTile/MediaTiles.story.jsx b/packages/sage-react/lib/MediaTile/MediaTiles.story.jsx index 0a29bb0f6c..5cd2df51aa 100644 --- a/packages/sage-react/lib/MediaTile/MediaTiles.story.jsx +++ b/packages/sage-react/lib/MediaTile/MediaTiles.story.jsx @@ -1,6 +1,7 @@ import React from 'react'; import { selectArgs } from '../story-support/helpers'; import { MediaTiles } from './MediaTiles'; +import placeholderImg from '../../public/CardPlaceholderLarge.png'; const actionsDropdownItems = [ { @@ -55,7 +56,7 @@ export default { children: commonChildren, footer: null, media: ( - + ), tileLink: commonTileLink, }, @@ -66,7 +67,7 @@ export default { children: commonChildren, footer: null, media: ( - + ), tileLink: commonTileLink, }, @@ -77,7 +78,7 @@ export default { children: commonChildren, footer: null, media: ( - + ), tileLink: commonTileLink, }, @@ -88,7 +89,7 @@ export default { children: commonChildren, footer: null, media: ( - + ), tileLink: commonTileLink, }, diff --git a/packages/sage-react/lib/NextBestAction/NextBestAction.story.jsx b/packages/sage-react/lib/NextBestAction/NextBestAction.story.jsx index 7cf98be596..48619f744e 100644 --- a/packages/sage-react/lib/NextBestAction/NextBestAction.story.jsx +++ b/packages/sage-react/lib/NextBestAction/NextBestAction.story.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { selectArgs } from '../story-support/helpers'; import { NextBestAction } from './NextBestAction'; import { Button } from '../Button'; +import placeholderImg from '../../public/CardPlaceholderLarge.png'; export default { title: 'Sage/Next Best Action', @@ -34,7 +35,7 @@ export default { ), dismissable: true, graphic: { - element: () + element: () }, // eslint-disable-next-line no-console onClickDismiss: () => { console.log('Add your own dismiss functionality here!'); }, diff --git a/packages/sage-react/lib/Panel/Panel.story.mdx b/packages/sage-react/lib/Panel/Panel.story.mdx index 585cca4b74..1b833bdec1 100644 --- a/packages/sage-react/lib/Panel/Panel.story.mdx +++ b/packages/sage-react/lib/Panel/Panel.story.mdx @@ -5,6 +5,7 @@ import { Icon } from "../Icon"; import { OptionsDropdown } from "../Dropdown"; import { Panel } from "./Panel"; import { SageClassnames, SageTokens } from "../configs"; +import placeholderImg from '../../public/CardPlaceholderLarge.png'; - + `} @@ -380,7 +381,7 @@ A panel figure contains an image that occupies a substantive space in the panel. - + diff --git a/packages/sage-react/public/CardPlaceholderLarge.png b/packages/sage-react/public/CardPlaceholderLarge.png new file mode 100644 index 0000000000..e069d7bf9c Binary files /dev/null and b/packages/sage-react/public/CardPlaceholderLarge.png differ diff --git a/packages/sage-react/public/CardPlaceholderSmall.png b/packages/sage-react/public/CardPlaceholderSmall.png new file mode 100644 index 0000000000..e354206a7e Binary files /dev/null and b/packages/sage-react/public/CardPlaceholderSmall.png differ