Skip to content

Commit 8f25da7

Browse files
chore(picker): remove window.isChromatic calls and click event
1 parent 2132315 commit 8f25da7

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

components/picker/stories/template.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ export const Picker = ({
6464
id=${id}
6565
style=${styleMap(customStyles)}
6666
type="button"
67-
@click=${() => {
68-
if (window.isChromatic()) return;
69-
updateArgs({ isOpen: !isOpen });
70-
}}
67+
@click=${function() {
68+
updateArgs({ isOpen: !isOpen });
69+
}}
7170
aria-labelledby=${ifDefined(ariaLabeledBy)}
7271
>
7372
${when(contentIconName, () =>
@@ -195,12 +194,6 @@ export const Template = ({
195194
}, context)
196195
)}
197196
</div>`;
198-
199-
// Make sure there is a wrapper around sibling components when using the Chromatic
200-
// template, so their layout is not affected by the flex and grid layouts used.
201-
if (window.isChromatic()) {
202-
return html`<div style="position: relative;">${markup}</div>`;
203-
}
204197
return markup;
205198
};
206199

0 commit comments

Comments
 (0)