From 1a78ad2156ff2dff9d5b1132cb6099781cbc8e1b Mon Sep 17 00:00:00 2001 From: jguze Date: Tue, 21 Apr 2020 17:36:36 -0700 Subject: [PATCH] Fixing the fact that the addon-docs ember framework wasn't outputting the default value properly --- addons/docs/src/frameworks/ember/jsondoc.js | 2 +- examples/ember-cli/app/components/welcome-banner.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/docs/src/frameworks/ember/jsondoc.js b/addons/docs/src/frameworks/ember/jsondoc.js index 307f8c35bc6..5072a942f92 100644 --- a/addons/docs/src/frameworks/ember/jsondoc.js +++ b/addons/docs/src/frameworks/ember/jsondoc.js @@ -14,7 +14,7 @@ export const extractArgTypes = (componentName) => { const rows = componentDoc.attributes.arguments.map((prop) => { return { name: prop.name, - defaultValue: prop.defaultValue, + defaultValue: { summary: prop.defaultValue }, description: prop.description, table: { type: { diff --git a/examples/ember-cli/app/components/welcome-banner.js b/examples/ember-cli/app/components/welcome-banner.js index 5b4bb4e0bb1..05478b4b560 100644 --- a/examples/ember-cli/app/components/welcome-banner.js +++ b/examples/ember-cli/app/components/welcome-banner.js @@ -23,6 +23,7 @@ export default Component.extend({ * The hex-formatted color code for the background. * @argument backgroundColor * @type {string} + * @default null */ backgroundColor: null,