Skip to content

Commit

Permalink
chore: wrap stories in div with orama id
Browse files Browse the repository at this point in the history
  • Loading branch information
g-francesca committed Jul 2, 2024
1 parent 5565eab commit f042649
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions apps/storybook/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ import "./../../../packages/ui-stencil/dist/orama-ui/orama-ui.css";

defineCustomElements();

// import global styles

/** @type { import('@storybook/html').Preview } */
const preview = {
tags: ["autodocs"],
decorators: [
(story) => {
const decorator = document.createElement('div');
decorator.id = 'orama-ui';
decorator.appendChild(story());
return decorator;
}
],
parameters: {
controls: {
matchers: {
Expand Down
4 changes: 3 additions & 1 deletion packages/ui-stencil/src/styles/globals.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:root {
@include spread-map($theme-light);
#orama-ui {
@include spread-map($theme-light);
}
}

0 comments on commit f042649

Please sign in to comment.