Skip to content

Commit 4d5e662

Browse files
committed
docs: wrong workflow icons appearing for arrow and chevron
Related fixes for Icon migration, that helps fix the wrong workflow icons appearing for arrow and chevron. These are both icons with names that exist in both icon sets. Some component stories need the icon set specified.
1 parent f10a4b3 commit 4d5e662

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

components/actionbutton/stories/template.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const Template = ({
1717
rootClass = "spectrum-ActionButton",
1818
size = "m",
1919
iconName,
20+
iconSet,
2021
label,
2122
isQuiet = false,
2223
isSelected = false,
@@ -78,6 +79,7 @@ export const Template = ({
7879
...globals,
7980
size,
8081
iconName,
82+
setName: iconSet,
8183
customClasses: [`${rootClass}-icon`, ...customIconClasses],
8284
})
8385
)}

components/combobox/stories/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const Template = ({
104104
... isValid ? ['is-valid'] : [],
105105
],
106106
size,
107-
iconType: "workflow",
107+
iconType: "ui",
108108
iconName: "ChevronDown",
109109
isQuiet,
110110
isOpen,

components/pagination/stories/template.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const Template = ({
3030
${ActionButton({
3131
size,
3232
isQuiet: true,
33+
iconSet: "ui",
3334
iconName: "ChevronLeft",
3435
customClasses: [`${rootClass}-prevButton`],
3536
})}
@@ -42,6 +43,7 @@ export const Template = ({
4243
${ActionButton({
4344
size,
4445
isQuiet: true,
46+
iconSet: "ui",
4547
iconName: "ChevronRight",
4648
customClasses: [`${rootClass}-nextButton`],
4749
})}

components/picker/stories/template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const Picker = ({
8181
${Icon({
8282
...globals,
8383
size,
84+
setName: "ui",
8485
iconName: "ChevronDown",
8586
customClasses: [`${rootClass}-menuIcon`],
8687
})}

components/pickerbutton/stories/template.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { html } from "lit";
22
import { classMap } from "lit/directives/class-map.js";
3-
import { styleMap } from "lit/directives/style-map.js";
43
import { ifDefined } from "lit/directives/if-defined.js";
4+
import { styleMap } from "lit/directives/style-map.js";
55

66
import { useArgs } from "@storybook/client-api";
77

@@ -72,6 +72,7 @@ export const Template = ({
7272
: ""}
7373
${Icon({
7474
...globals,
75+
setName: iconType,
7576
iconName: iconName ?? "ChevronDown",
7677
size,
7778
customClasses: [`${rootClass}-icon`],

components/treeview/stories/template.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const TreeViewItem = ({
2020
isOpen,
2121
isDropTarget,
2222
icon,
23+
iconSet,
2324
thumbnail,
2425
items,
2526
customClasses = [],
@@ -80,6 +81,7 @@ export const TreeViewItem = ({
8081
? Icon({
8182
...globals,
8283
size,
84+
setName: "ui",
8385
iconName: "ChevronRight",
8486
customClasses: [`${rootClass}-itemIndicator`],
8587
})
@@ -89,6 +91,7 @@ export const TreeViewItem = ({
8991
...globals,
9092
size,
9193
iconName: icon,
94+
setName: iconSet,
9295
customClasses: [`${rootClass}-itemIcon`],
9396
})
9497
: ""}

0 commit comments

Comments
 (0)