Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

mdList: Expando feature needed. #985

Closed
marcysutton opened this issue Dec 18, 2014 · 23 comments
Closed

mdList: Expando feature needed. #985

marcysutton opened this issue Dec 18, 2014 · 23 comments
Labels
- Lots of Comments for: internal contributor The team will address this issue and community PRs are not requested. resolution: won't fix There are no resources to fix this issue, the priority is too low, or it doesn't align w/ MD spec. type: feature
Milestone

Comments

@marcysutton
Copy link
Contributor

A nice feature in the Material Design spec is the Expand/collapse List-Item Control.

Material Design spec for expandable list control

As part of the Angular Material Documentation Re-design, this feature will be used in the Sidenav.
This is related to mdList Issue #904.

<md-list ng-repeat="topic in menu.activities">

   <md-list-item md-expando>
      <md-icon src="{{topic.icon}}"></md-icon>
     <label>{{topic.title}}</label>
   </md-list-item>

</md-list>  

Visual requirements:

- Caret changes to indicate open/closed - Expanded panel has top and bottom borders - Child items are indented in line with parent toggle item

Functional requirements:

- Hidden panels should be really hidden with `display: none` (or `aria-hidden="true"` and `tabIndex="-1"` on each child control) - Animated transitions

Semantic requirements:

- Parent toggle item should indicate the child list it owns with `aria-controls="childListId"` - `aria-expanded="true | false"` on parent toggle item to indicate whether it is expanded or collapsed - Either `role="menu"` and `role="menuitem"` [should be used to indicate child elements are interactive](http://www.w3.org/TR/wai-aria/roles#menuitem) OR list items should have `` inside of them ([related issue](https://github.com//issues/904))

Questions:

- What is the style/indentation for items that do not have visual icons? - What is the style for the hover on the caret control?
@ThomasBurleson ThomasBurleson changed the title Feat: Expand/Collapse List-item Control mdListItem: Expand/Collapse List-item Control Dec 20, 2014
@ThomasBurleson ThomasBurleson added this to the 0.9.0 milestone Dec 20, 2014
@EladBezalel
Copy link
Member

👍

@shannon
Copy link

shannon commented Mar 6, 2015

👍

@SweVictor
Copy link

I was looking for how to make a list item clickable, much like the Google Material Inbox example. I came here through #904, hopefully this is the right place.

Anyway - after experimenting with the current release, I realized that wrapping a list item i an tag looks very un-material-like and wrapping an item with a md-button completely ruins the layout.

I found the discussion in #904 slightly hard to follow, so you might be on to this already, anyway my request is that Google Material's "primary/secondary action" (linked page above => Content => Tile actions) is implemented.

Most simple case would be the list example from the docs, but clickable - more advanced would be a secondary action for the image and primary for the rest. Anyway, a large click target would one goal for me.

A simple implementation to maybe look at would be Bootstrap's clickable list items, a control we use heavily on our Bootstrap projects.

/Victor

@mikol
Copy link

mikol commented Mar 16, 2015

@SweVictor I have a topic open in the forum to discuss just the functionality that you are describing. Please take a look.

@robertmesserle robertmesserle modified the milestones: 0.10.0, 0.9.0 Mar 25, 2015
@robertmesserle robertmesserle added type: enhancement and removed needs: team discussion This issue requires a decision from the team before moving forward. labels Mar 25, 2015
@ThomasBurleson
Copy link
Contributor

@dparish - we really don't have a better way of voting... (wish list for GitHub). So thanks for your vote.
@Jamm - While I am not a fan of +1, but for voting/endorsement on Github it works.

@ThomasBurleson
Copy link
Contributor

We are currently hyper-focused on a summer release for Angular Material v1.0; which will include Menu and DateTimePicker components, performance enhancements, bug fixes, and improved documentation.

The Expando and Accordion features are definitely on our roadmap but not critical to a v1.0 Beta candidate. Time-permitting, a demo of this feature will be posted on CodePen.

We are locking this issue for now... it will remain an open issue, but locked to future discussions. Please future discussions in the Angular Material Forum

@angular angular locked and limited conversation to collaborators Jun 4, 2015
@angular angular unlocked this conversation Jun 4, 2015
@angular angular locked and limited conversation to collaborators Jun 4, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 0.10.0, 0.11.0 Jun 16, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 0.11.0, post-1.0 Jul 31, 2015
@ThomasBurleson ThomasBurleson modified the milestones: post-1.0 , Backlog Jan 5, 2016
@ThomasBurleson ThomasBurleson modified the milestones: Backlog, Features Apr 21, 2016
@ThomasBurleson ThomasBurleson modified the milestones: - Features, Deprecated May 26, 2016
@ThomasBurleson
Copy link
Contributor

This issue is closed as part of our ‘Surge Focus on Material 2' efforts.
For details, see our forum posting @ http://bit.ly/1UhZyWs.

@Splaktar Splaktar added the resolution: won't fix There are no resources to fix this issue, the priority is too low, or it doesn't align w/ MD spec. label Dec 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
- Lots of Comments for: internal contributor The team will address this issue and community PRs are not requested. resolution: won't fix There are no resources to fix this issue, the priority is too low, or it doesn't align w/ MD spec. type: feature
Projects
None yet
Development

No branches or pull requests