Skip to content

Commit b5eefb5

Browse files
authored
fix: Support Icons for button dropdown (#3730)
1 parent ad43d71 commit b5eefb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/button-dropdown/icon-expandable.page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ButtonDropdown, { ButtonDropdownProps } from '~components/button-dropdown
66
import SpaceBetween from '~components/space-between';
77

88
import AppContext, { AppContextType } from '../app/app-context';
9+
import img from '../icon/custom-icon.png';
910
import ScreenshotArea from '../utils/screenshot-area';
1011

1112
import styles from './styles.scss';
@@ -23,7 +24,8 @@ export const items: ButtonDropdownProps['items'] = [
2324
{
2425
id: 'category2',
2526
text: 'category2',
26-
iconUrl: 'data:image/png;base64,aaaa',
27+
//New source for iconUrl
28+
iconUrl: img,
2729
items: [...Array(2)].map((_, index) => ({
2830
id: 'category2Subitem' + index,
2931
text: 'Cat 2 Sub item ' + index,

0 commit comments

Comments
 (0)