Skip to content

Commit b4c24e8

Browse files
committed
fix(progresscircle): revert comp stories to original
1 parent c029055 commit b4c24e8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/progressbar/stories/progressbar.stories.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isIndeterminate, size, staticColor } from "@spectrum-css/preview/types"
44
import metadata from "../dist/metadata.json";
55
import packageJson from "../package.json";
66
import { ProgressBarGroup } from "./progressbar.test.js";
7-
import { Template } from "./template.js";
7+
import { IndeterminateGroup, Template } from "./template.js";
88

99
/**
1010
* The progress bar component shows the progression of a system operation such as downloading, uploading, processing, etc. in a visual way.
@@ -130,7 +130,7 @@ Sizing.parameters = {
130130
/**
131131
* Progress bars can represent either determinate or indeterminate progress. Use a determinate progress bar when progress can be calculated against a specific goal (e.g., downloading a file of a known size). Use an indeterminate progress bar when progress is happening, but the time or effort to completion can’t be determined (e.g., attempting to reconnect to a server).
132132
*/
133-
export const Indeterminate = Template.bind({});
133+
export const Indeterminate = IndeterminateGroup.bind({});
134134
Indeterminate.args = {
135135
value: 50,
136136
};

components/tooltip/stories/tooltip.stories.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { disableDefaultModes } from "@spectrum-css/preview/modes";
22
import { isFocused, isOpen } from "@spectrum-css/preview/types";
33
import metadata from "../dist/metadata.json";
44
import packageJson from "../package.json";
5-
import { Template } from "./template.js";
5+
import { SemanticVariantGroup, TooltipPlacementGroup, TooltipShowOnHover } from "./template.js";
66
import { PlacementVariants } from "./tooltip.test.js";
77

88
/**
@@ -101,7 +101,7 @@ Default.args = {};
101101
* is its source's position. For example, for the position and modifier class `--top-left`, the tooltip is positioned
102102
* at the top and the source is to the left. The default placement value if none is specified is at the top.
103103
*/
104-
export const Placement = Template.bind({});
104+
export const Placement = TooltipPlacementGroup.bind({});
105105
Placement.tags = ["!dev"];
106106
Placement.parameters = {
107107
chromatic: { disableSnapshot: true },
@@ -111,7 +111,7 @@ Placement.parameters = {
111111
* A tooltip that shows on hover using CSS only. Note that this approach does not support text wrapping. Also, note
112112
* that these tooltips will likely not work on touch-enabled devices without additional client-side scripting.
113113
*/
114-
export const ShowOnHover = Template.bind({});
114+
export const ShowOnHover = TooltipShowOnHover.bind({});
115115
ShowOnHover.tags = ["!dev"];
116116
ShowOnHover.args = {
117117
label: "Tooltip",
@@ -132,7 +132,7 @@ ShowOnHover.parameters = {
132132
* customized. Unless it's being used to provide context about the exact same icon, a semantic tooltip should always
133133
* show an icon. Doing this is essential for helping users with color vision deficiency to discern the message tone.
134134
*/
135-
export const SemanticVariants = Template.bind({});
135+
export const SemanticVariants = SemanticVariantGroup.bind({});
136136
SemanticVariants.tags = ["!dev"];
137137
SemanticVariants.parameters = {
138138
chromatic: { disableSnapshot: true },

0 commit comments

Comments
 (0)