-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(list): Update single line list to ellipsis (#3460)
- Loading branch information
1 parent
f57c731
commit 60cf6c5
Showing
16 changed files
with
1,687 additions
and
1,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,44 +43,62 @@ <h6 class="mdc-drawer__subtitle">[email protected]</h6> | |
<nav class="mdc-list"> | ||
<a class="mdc-list-item mdc-list-item--activated" href="#" aria-selected="true" tabindex="0"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">inbox</i> | ||
Inbox | ||
<span class="mdc-list-item__text"> | ||
Inbox | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">star</i> | ||
Star | ||
<span class="mdc-list-item__text"> | ||
Star | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">send</i> | ||
Sent Mail | ||
<span class="mdc-list-item__text"> | ||
Sent Mail | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">drafts</i> | ||
Drafts | ||
<span class="mdc-list-item__text"> | ||
Drafts | ||
</span> | ||
</a> | ||
|
||
<hr class="mdc-list-divider"> | ||
<h6 class="mdc-list-group__subheader">Labels</h6> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
Family | ||
<span class="mdc-list-item__text"> | ||
Family | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
Friends | ||
<span class="mdc-list-item__text"> | ||
Friends | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
Work | ||
<span class="mdc-list-item__text"> | ||
Work | ||
</span> | ||
</a> | ||
|
||
<hr class="mdc-list-divider"> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">settings</i> | ||
Settings | ||
<span class="mdc-list-item__text"> | ||
Settings | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">announcement</i> | ||
Help & feedback | ||
<span class="mdc-list-item__text"> | ||
Help & feedback | ||
</span> | ||
</a> | ||
</nav> | ||
</div> | ||
|
@@ -195,7 +213,7 @@ <h1 class="mdc-typography--headline4">Dismissible Drawer</h1> | |
var selectedDestinationEl = document.querySelector('.demo-selected-destination'); | ||
var mainEl = document.querySelector('.demo-main'); | ||
listEl.addEventListener('click', function(event) { | ||
selectedDestinationEl.textContent = event.target.lastChild.textContent; | ||
selectedDestinationEl.textContent = event.target.lastElementChild.textContent; | ||
mainEl.querySelector('input').focus(); | ||
}); | ||
document.body.addEventListener('MDCDrawer:closed', function() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,44 +43,62 @@ <h6 class="mdc-drawer__subtitle">[email protected]</h6> | |
<nav class="mdc-list"> | ||
<a class="mdc-list-item mdc-list-item--activated" href="#" tabindex="0"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">inbox</i> | ||
Inbox | ||
<span class="mdc-list-item__text"> | ||
Inbox | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">star</i> | ||
Star | ||
<span class="mdc-list-item__text"> | ||
Star | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">send</i> | ||
Sent Mail | ||
<span class="mdc-list-item__text"> | ||
Sent Mail | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">drafts</i> | ||
Drafts | ||
<span class="mdc-list-item__text"> | ||
Drafts | ||
</span> | ||
</a> | ||
|
||
<hr class="mdc-list-divider"> | ||
<h6 class="mdc-list-group__subheader">Labels</h6> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
Family | ||
<span class="mdc-list-item__text"> | ||
Family | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
Friends | ||
<span class="mdc-list-item__text"> | ||
Friends | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
Work | ||
<span class="mdc-list-item__text"> | ||
Work | ||
</span> | ||
</a> | ||
|
||
<hr class="mdc-list-divider"> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">settings</i> | ||
Settings | ||
<span class="mdc-list-item__text"> | ||
Settings | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">announcement</i> | ||
Help & feedback | ||
<span class="mdc-list-item__text"> | ||
Help & feedback | ||
</span> | ||
</a> | ||
</nav> | ||
</div> | ||
|
@@ -197,7 +215,7 @@ <h1 class="mdc-typography--headline4">Modal Drawer</h1> | |
var mainEl = document.querySelector('.demo-main'); | ||
listEl.addEventListener('click', function(event) { | ||
drawer.open = false; | ||
selectedDestinationEl.textContent = event.target.lastChild.textContent; | ||
selectedDestinationEl.textContent = event.target.lastElementChild.textContent; | ||
}); | ||
document.body.addEventListener('MDCDrawer:closed', function() { | ||
mainEl.querySelector('input').focus(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,36 +42,63 @@ <h6 class="mdc-drawer__subtitle">[email protected]</h6> | |
<div class="mdc-drawer__content"> | ||
<nav class="mdc-list"> | ||
<a class="mdc-list-item mdc-list-item--activated" href="#" aria-selected="true" tabindex="0"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">inbox</i>Inbox | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">inbox</i> | ||
<span class="mdc-list-item__text"> | ||
Inbox | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">star</i>Star | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">star</i> | ||
<span class="mdc-list-item__text"> | ||
Star | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">send</i>Sent Mail | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">send</i> | ||
<span class="mdc-list-item__text"> | ||
Sent Mail | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">drafts</i>Drafts | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">drafts</i> | ||
<span class="mdc-list-item__text"> | ||
Drafts | ||
</span> | ||
</a> | ||
|
||
<hr class="mdc-list-divider"> | ||
<h6 class="mdc-list-group__subheader">Labels</h6> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i>Family | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
<span class="mdc-list-item__text"> | ||
Family | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i>Friends | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
<span class="mdc-list-item__text"> | ||
Friends | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i>Work | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">bookmark</i> | ||
<span class="mdc-list-item__text"> | ||
Work | ||
</span> | ||
</a> | ||
|
||
<hr class="mdc-list-divider"> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">settings</i>Settings | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">settings</i> | ||
<span class="mdc-list-item__text"> | ||
Settings | ||
</span> | ||
</a> | ||
<a class="mdc-list-item" href="#"> | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">announcement</i>Help & feedback | ||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">announcement</i> | ||
<span class="mdc-list-item__text"> | ||
Help & feedback | ||
</span> | ||
</a> | ||
</nav> | ||
</div> | ||
|
@@ -180,7 +207,7 @@ <h1 class="mdc-typography--headline4">Permanent Drawer</h1> | |
var selectedDestinationEl = document.querySelector('.demo-selected-destination'); | ||
var mainEl = document.querySelector('.demo-main'); | ||
listEl.addEventListener('click', function(event) { | ||
selectedDestinationEl.textContent = event.target.lastChild.textContent; | ||
selectedDestinationEl.textContent = event.target.lastElementChild.textContent; | ||
mainEl.querySelector('input').focus(); | ||
}); | ||
}); | ||
|
Oops, something went wrong.