Skip to content

Commit

Permalink
fix(drawer): update radio button ids to correct add/remove classes on…
Browse files Browse the repository at this point in the history
… demos (#1883)
  • Loading branch information
Matty Goo authored Jan 6, 2018
1 parent 9bb3be5 commit ac46b88
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions demos/drawer/permanent-drawer-above-toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
</head>
<body class="mdc-typography demo-body">
<nav id="demo-drawer" class="mdc-drawer mdc-drawer--permanent demo-drawer">
<div class="mdc-drawer__toolbar-spacer"></div>
<div class="mdc-list-group">
<nav class="mdc-list">
<a class="mdc-list-item mdc-list-item--selected demo-drawer-list-item" href="#">
Expand Down Expand Up @@ -202,9 +201,9 @@ <h1 class="mdc-typography--display1">Permanent Drawer</h1>
drawerEl.classList.remove('demo-drawer--custom');
drawerEl.classList.remove('demo-drawer--accessible');

if(e.target.id === 'accessible') {
if(e.target.id === 'theme-radio-accessible') {
drawerEl.classList.add('demo-drawer--accessible');
} else if(e.target.id === 'custom') {
} else if(e.target.id === 'theme-radio-custom') {
drawerEl.classList.add('demo-drawer--custom');
}
});
Expand Down
4 changes: 2 additions & 2 deletions demos/drawer/permanent-drawer-below-toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ <h1 class="mdc-typography--display1">Permanent Drawer</h1>
drawerEl.classList.remove('demo-drawer--custom');
drawerEl.classList.remove('demo-drawer--accessible');

if(e.target.id === 'accessible') {
if(e.target.id === 'theme-radio-accessible') {
drawerEl.classList.add('demo-drawer--accessible');
} else if(e.target.id === 'custom') {
} else if(e.target.id === 'theme-radio-custom') {
drawerEl.classList.add('demo-drawer--custom');
}
});
Expand Down
4 changes: 2 additions & 2 deletions demos/drawer/persistent-drawer.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ <h1 class="mdc-typography--display1">Persistent Drawer</h1>
drawerEl.classList.remove('demo-drawer--custom');
drawerEl.classList.remove('demo-drawer--accessible');

if(e.target.id === 'accessible') {
if(e.target.id === 'theme-radio-accessible') {
drawerEl.classList.add('demo-drawer--accessible');
} else if(e.target.id === 'custom') {
} else if(e.target.id === 'theme-radio-custom') {
drawerEl.classList.add('demo-drawer--custom');
}
});
Expand Down
4 changes: 2 additions & 2 deletions demos/drawer/temporary-drawer.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ <h1 class="mdc-typography--display1">Temporary Drawer</h1>
drawerEl.classList.remove('demo-drawer--custom');
drawerEl.classList.remove('demo-drawer--accessible');

if(e.target.id === 'accessible') {
if(e.target.id === 'theme-radio-accessible') {
drawerEl.classList.add('demo-drawer--accessible');
} else if(e.target.id === 'custom') {
} else if(e.target.id === 'theme-radio-custom') {
drawerEl.classList.add('demo-drawer--custom');
}
});
Expand Down

0 comments on commit ac46b88

Please sign in to comment.