Skip to content

Commit 0065952

Browse files
committed
fixup! refactor(menu-list-renderer): use limel-list-item to render the menu items
1 parent f6c54b1 commit 0065952

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/menu-list/menu-list-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class MenuListRenderer {
119119

120120
return (
121121
<limel-list-item
122-
class="mdc-deprecated-list-item"
122+
class="mdc-deprecated-list-item" // required for keyboard navigation with arrow keys
123123
data-index={index}
124124
{...attributes}
125125
type="menuitem"

src/components/menu-list/menu-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class MenuList {
168168
private triggerIconColorWarning() {
169169
if (this.items?.some((item) => 'iconColor' in item)) {
170170
console.warn(
171-
"The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`."
171+
"The `iconColor` prop is deprecated, has no visual effect anymore, and will soon be removed! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`."
172172
);
173173
}
174174
}

0 commit comments

Comments
 (0)