Skip to content

Commit

Permalink
Merge pull request #64 from etchteam/feature/etch-540-remove-diamond-…
Browse files Browse the repository at this point in the history
…app-headerstatic

Feature/etch 540 remove diamond app headerstatic
  • Loading branch information
gavmck authored May 31, 2024
2 parents a9425ba + 9df2a47 commit d24110e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions components/composition/App/App.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export default {
argTypes: {
header: {
control: {
type: 'select',
type: 'radio',
},
options: ['sticky', 'static'],
options: ['', 'sticky'],
},
},
};
Expand All @@ -45,7 +45,3 @@ export const App: StoryObj = {
</diamond-app>
`,
};

App.args = {
header: 'static',
};
4 changes: 2 additions & 2 deletions components/composition/App/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit d24110e

Please sign in to comment.