docs(menu): set target to _blank in demos

PiperOrigin-RevId: 587866823
This commit is contained in:
Elliott Marquez 2023-12-04 15:52:19 -08:00 committed by Copybara-Service
parent af49b64ab4
commit aafea84115
2 changed files with 1 additions and 11 deletions

View File

@ -128,10 +128,6 @@ const collection = new MaterialCollection<KnobTypesToKnobs<StoryKnobs>>(
defaultValue: 'https://google.com',
ui: textInput(),
}),
new Knob('target', {
defaultValue: '',
ui: textInput(),
}),
new Knob('link icon', {
defaultValue: 'open_in_new',
ui: textInput(),

View File

@ -38,7 +38,6 @@ export interface StoryKnobs {
keepOpen: boolean;
disabled: boolean;
href: string;
target: string;
'link icon': string;
'sub-menu': void;
@ -154,13 +153,8 @@ const linkable: MaterialStoryInit<StoryKnobs> = {
const items = fruitNames.map((name, index) => {
return html` <md-menu-item
id=${index}
target="_blank"
.disabled=${knobs.disabled}
.target=${knobs.target as
| ''
| '_blank'
| '_parent'
| '_self'
| '_top'}
.href=${knobs.href}>
<div slot="headline">${name}</div>
<md-icon slot="end"> ${knobs['link icon']} </md-icon>