Skip to content

Commit

Permalink
fix(menu): post rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jenndiaz authored and pfulton committed Jan 9, 2024
1 parent 0c78f45 commit 6fdaf71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions components/menu/metadata/menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,9 @@ examples:
<span class="spectrum-Menu-itemLabel">Subtract</span>
</li>
</ul>
</div>
</div>
- id: menu-truncate
name: Menu with truncating text
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`
Expand Down
3 changes: 1 addition & 2 deletions components/menu/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export const MenuItem = ({
size,
isEmphasized: true,
isChecked: isSelected,
label: label,
id: `menu-checkbox-${idx}`,
customClasses: [
`${rootClass}Checkbox`,
Expand Down Expand Up @@ -186,7 +185,7 @@ export const MenuGroup = ({
>
${!isTraySubmenu
? html`<span
class="spectrum-Menu-sectionHeading"
class="spectrum-Menu-sectionHeading ${shouldTruncate ? "spectrum-Menu-itemLabel--truncate" : "" }"
id=${id ?? `menu-heading-category-${idx}`}
aria-hidden="true"
>${heading}</span>`
Expand Down

0 comments on commit 6fdaf71

Please sign in to comment.