Skip to content

Commit

Permalink
feature(storybook): change folder structure (#894)
Browse files Browse the repository at this point in the history
* feature(storybook): change folder structure

* fix(storybook): change imports for types

* fix(storybook): wip

* only create custom element if not defined

* feat(storybook): align overall folder structure

* fix(storybook): tests

* fix(storybook): delete unnecessary folder

* fix(storybook): wip

* fix(storybook): delete double customElements

---------

Co-authored-by: christian.b.hoffmann <christian.b.hoffmann@accenture.com>
  • Loading branch information
2 people authored and larserbach committed Feb 20, 2024
1 parent 95b6fb1 commit c0a96fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui-library/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
parameters: {
options: {
storySort: {
method: 'alphabetical',
method: 'alphabetical', // Sort alphabetically
order: ['Foundation', 'Components'],
locales: 'en-US',
},
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-library/src/components/icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,8 @@ if (!customElements.get(TAG_NAME)) {
customElements.define(TAG_NAME, BlrIcon);
}

if (!customElements.get(TAG_NAME)) {
customElements.define(TAG_NAME, BlrIcon);
}

export type BlrIconType = Partial<Omit<BlrIcon, keyof LitElement>> & BlrIconEventHandlers;

0 comments on commit c0a96fd

Please sign in to comment.