You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add figma design link to icon in storybook
- refactor: use Container in icon tests template
- small formatting adjustments to icon docs, including added subheadings
Copy file name to clipboardExpand all lines: components/icon/stories/icon.mdx
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,26 @@ The SVG icons used in Spectrum CSS are a part of two different icon sets, "workf
20
20
21
21
### Workflow icons
22
22
23
-
The workflow icon set contains several hundred icons to choose from.
24
-
These icons can be seen in use within Button, Action button, Menu, and many other components.
23
+
The workflow icon set contains several hundred icons to choose from. For a full list of all icons within this set, see **[workflow icons](/story/components-icon--workflow)**.
24
+
These icons can be seen in use within button, action button, menu, and many other components.
25
25
Here is an example with just a few of these icons:
26
26
27
27
<Canvasof={IconStories.WorkflowDefault} />
28
28
29
-
These icons use "t-shirt" sizes, e.g. small or medium, that are the same width and height for each icon in the set. Note that the
30
-
extra-extra-large size is currently *not* part of the design specifications and may be deprecated in the near future:
29
+
#### T-shirt sizing
30
+
31
+
Workflow icons use "t-shirt" sizes, e.g. small or medium, that are the same width and height for each icon in the set. Note that the
32
+
extra-extra-large size is currently _not_ part of the design specifications and may be deprecated in the near future:
31
33
32
34
<Canvasof={IconStories.WorkflowSizing} />
33
35
34
36
### UI icons
35
37
36
38
UI icons are atomic pieces (e.g., arrows, crosses, etc.) that are used as part of some components. The chevron within
37
-
the [Combobox component](?path=/docs/components-combobox--docs) is one example.
39
+
the [Combobox component](/docs/components-combobox--docs) is one example. For a full list of all icons within this
40
+
set, see **[ui icons](/story/components-icon--ui)**.
41
+
42
+
#### Numbered sizing
38
43
39
44
Unlike workflow icons, each UI icon comes in specific numbered sizes. They do not use "t-shirt" sizing.
40
45
They have unique classes applied that set their size in CSS. For example:
@@ -50,6 +55,8 @@ An example of some UI icons in their available sizes:
50
55
51
56
<Canvasof={IconStories.UIDefault} />
52
57
58
+
#### Directional icons
59
+
53
60
Directional UI icons such as Chevron and Arrow have classes for each direction. They rotate the same base icon with a CSS `transform: rotate`. For example, the `Arrow100.svg` icon is used
0 commit comments