Skip to content

Commit

Permalink
fix(combobox): corrects cases where open combobx stories and testing …
Browse files Browse the repository at this point in the history
…previews could overlap adjacent components (#3568)
  • Loading branch information
cdransf authored and castastrophe committed Feb 24, 2025
1 parent a25e0a9 commit d5e72d4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .storybook/decorators/context.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { makeDecorator, useEffect } from "@storybook/preview-api";
import { fetchContainers, toggleStyles } from "./helpers.js";

import tokens from "@spectrum-css/tokens/dist/index.css?inline";
import tokens from "@spectrum-css/tokens/dist/css/index.css?inline";

/**
* @type import('@storybook/csf').DecoratorFunction<import('@storybook/web-components').WebComponentsFramework>
Expand Down
4 changes: 2 additions & 2 deletions .storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrum-css/preview",
"version": "11.0.1-next.2",
"version": "12.0.3",
"description": "A Spectrum CSS preview",
"license": "Apache-2.0",
"author": "Adobe",
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"dependencies": {
"@adobe/spectrum-css-workflow-icons": "^4.0.0",
"@spectrum-css/bundle": "workspace:^",
"@spectrum-css/bundle": "1.0.0",
"@spectrum-css/tokens": "14.0.0-next.2",
"@spectrum-css/ui-icons": "1.1.2"
},
Expand Down
10 changes: 10 additions & 0 deletions components/combobox/stories/combobox.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ DefaultGroup.args = Default.args;
DefaultGroup.tags = ["!dev"];
DefaultGroup.parameters = {
chromatic: { disableSnapshot: true },
docs: {
story: {
height: "360px",
},
},
};

export const QuietGroup = VariantGroup.bind({});
Expand All @@ -182,6 +187,11 @@ QuietGroup.args = {
QuietGroup.tags = ["!dev"];
QuietGroup.parameters = {
chromatic: { disableSnapshot: true },
docs: {
story: {
height: "360px",
},
},
};

/**
Expand Down
9 changes: 6 additions & 3 deletions components/combobox/stories/combobox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { Template } from "./template.js";
export const ComboBoxGroup = Variants({
Template,
sizeDirection: "row",
wrapperStyles: {
"align-items": "flex-start",
},
testData: [
{
testHeading: "Default",
Expand All @@ -20,11 +17,17 @@ export const ComboBoxGroup = Variants({
{
testHeading: "Open",
isOpen: true,
wrapperStyles: {
"min-block-size": "250px",
},
},
{
testHeading: "Quiet + open",
isQuiet: true,
isOpen: true,
wrapperStyles: {
"min-block-size": "250px",
},
},
{
testHeading: "With field label top",
Expand Down

0 comments on commit d5e72d4

Please sign in to comment.