mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
docs(menu): set target to _blank in demos
PiperOrigin-RevId: 587866823
This commit is contained in:
parent
af49b64ab4
commit
aafea84115
@ -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(),
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user