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
refactor(menu): adjust styling for disabled drill-in chevron
The SWC implementation was having difficulty with making sure the
chevron on a disabled drill-in menu item displayed as disabled,
without overriding CSS. On the SWC end, the way a generic icon is styled
is different from how chevrons or checkmarks are styled, so the styles
added don't apply to the chevron.
On looking at it on the CSS side, it doesn't seem to make sense to use
the .spectrum-itemIcon class on the drill-in chevron, as it is not
providing any styles and it seems that it should be distinct from the
icon to the left of the menu item label.
Copy file name to clipboardExpand all lines: components/menu/metadata/menu.yml
+18-10Lines changed: 18 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,24 @@ sections:
6
6
This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found <a class="spectrum-Link" href="https://github.com/adobe/spectrum-css/tree/main/components/menu/metadata/mods.md">here</a>.
7
7
- name: Migration Guide
8
8
description: |
9
-
### T-shirt sizing
9
+
### 1/22/2024 - Version 6.1.4
10
+
The `.spectrum-itemIcon` class has been removed from the drill-in variant's chevron.
11
+
12
+
### 8/04/2023 - Version 6.0.0
13
+
14
+
#### Core tokens migration ####
15
+
This component now uses Spectrum Tokens instead of DNA tokens.
16
+
17
+
#### T-shirt sizing
10
18
Menu now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-Menu--size*` class.
11
19
12
-
### Use small divider classes
13
-
When using a section divider, add `.spectrum-Divider` and `spectrum-Divider--sizeS` classes to `spectrum-Menu-divider`. The divider has also changed from medium to small.
20
+
#### Use small divider classes
21
+
When using a section divider, add `.spectrum-Divider` and `spectrum-Divider--sizeS` classes to `spectrum-Menu-divider`. The divider has changed from medium to small.
14
22
15
-
### Change workflow icon size to medium
16
-
Please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`.
23
+
### 9/22/2020 - Version 3.0.0
17
24
18
-
### Menu item with switch mark up ###
19
-
In the case of a menu item that includes an icon and a switch, the label and icon should be seperate elements. As opposed to the icon SVG being with in the label. This matches the pattern of other variants with icons within the menu item.
25
+
#### Change workflow icon size to medium
26
+
Please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`.
description: In the case of a menu item that includes an icon and a switch, the label and icon should be seperate elements. As opposed to the icon SVG being within the label. This matches the pattern of other variants that have icons within a menu item.
description: Use the class `spectrum-Menu-itemLabel--truncate` on the item label or section heading that should truncate with in a menu with a set `inline-size` or `max-inline-size`
1399
+
description: Use the class `spectrum-Menu-itemLabel--truncate` on the item label or section heading that should truncate within a menu with a set `inline-size` or `max-inline-size`
0 commit comments