From fdec4464f417fad5da262465fbf8d62017b42677 Mon Sep 17 00:00:00 2001 From: Gavyn McKenzie Date: Fri, 31 May 2024 13:47:49 +0100 Subject: [PATCH 1/2] fix: static header is the default --- components/composition/App/App.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/composition/App/App.ts b/components/composition/App/App.ts index 769e2b3..e201e1b 100644 --- a/components/composition/App/App.ts +++ b/components/composition/App/App.ts @@ -4,12 +4,12 @@ import { customElement, property } from 'lit/decorators.js'; import { JSXCustomElement } from '../../../types/jsx-custom-element'; export interface AppAttributes { - header?: 'sticky' | 'static'; + header?: 'sticky'; } @customElement('diamond-app') export class App extends LitElement { - @property({ reflect: true }) header?: 'sticky' | 'static' = 'static'; + @property({ reflect: true }) header?: 'sticky'; render() { return html` From 9df2a47a70b66f2d7d3f2a7d652f0cebe11d2e5b Mon Sep 17 00:00:00 2001 From: Gavyn McKenzie Date: Fri, 31 May 2024 13:49:13 +0100 Subject: [PATCH 2/2] docs: remove static option from controls --- components/composition/App/App.stories.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/composition/App/App.stories.ts b/components/composition/App/App.stories.ts index 4cd05c7..1d74372 100644 --- a/components/composition/App/App.stories.ts +++ b/components/composition/App/App.stories.ts @@ -17,9 +17,9 @@ export default { argTypes: { header: { control: { - type: 'select', + type: 'radio', }, - options: ['sticky', 'static'], + options: ['', 'sticky'], }, }, }; @@ -45,7 +45,3 @@ export const App: StoryObj = { `, }; - -App.args = { - header: 'static', -};