@@ -2,7 +2,7 @@ import { disableDefaultModes } from "@spectrum-css/preview/modes";
22import { isFocused , isOpen } from "@spectrum-css/preview/types" ;
33import metadata from "../metadata/metadata.json" ;
44import packageJson from "../package.json" ;
5- import { SemanticVariantGroup , TooltipPlacementGroup , TooltipShowOnHover } from "./template.js" ;
5+ import { Template } from "./template.js" ;
66import { 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 = TooltipPlacementGroup . bind ( { } ) ;
104+ export const Placement = Template . bind ( { } ) ;
105105Placement . tags = [ "!dev" ] ;
106106Placement . 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 = TooltipShowOnHover . bind ( { } ) ;
114+ export const ShowOnHover = Template . bind ( { } ) ;
115115ShowOnHover . tags = [ "!dev" ] ;
116116ShowOnHover . 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 = SemanticVariantGroup . bind ( { } ) ;
135+ export const SemanticVariants = Template . bind ( { } ) ;
136136SemanticVariants . tags = [ "!dev" ] ;
137137SemanticVariants . parameters = {
138138 chromatic : { disableSnapshot : true } ,
0 commit comments