From 76ecd889220b64698e1f5dfbc0f469e8e3d8f5c5 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Mon, 23 Oct 2017 11:41:06 -0700 Subject: [PATCH] title only callouts --- docs/src/views/call_out/info.js | 34 +++++++++++++++++++---------- src/components/call_out/call_out.js | 13 ++++++++--- 2 files changed, 32 insertions(+), 15 deletions(-) diff --git a/docs/src/views/call_out/info.js b/docs/src/views/call_out/info.js index 94980111935..208263dcce9 100644 --- a/docs/src/views/call_out/info.js +++ b/docs/src/views/call_out/info.js @@ -3,19 +3,29 @@ import React from 'react'; import { KuiCallOut, KuiLink, + KuiSpacer, } from '../../../../src/components'; export default () => ( - -

- Here’s some stuff that you need to know. We can make this text really long so that, - when viewed within a browser that’s fairly narrow, it will wrap, too. -

-

- And some other stuff on another line, just for kicks. And here’s a link. -

-
+
+ +

+ Here’s some stuff that you need to know. We can make this text really long so that, + when viewed within a browser that’s fairly narrow, it will wrap, too. +

+

+ And some other stuff on another line, just for kicks. And here’s a link. +

+
+ + + + +
); diff --git a/src/components/call_out/call_out.js b/src/components/call_out/call_out.js index f413324cdc0..cd9b6fb2e95 100644 --- a/src/components/call_out/call_out.js +++ b/src/components/call_out/call_out.js @@ -37,6 +37,15 @@ export const KuiCallOut = ({ title, type, iconType, children, className, ...rest ); } + let optionalChildren; + if (children) { + optionalChildren = ( + + {children} + + ); + } + return (
- - {children} - + {optionalChildren} ); };