material icon indicating copy to clipboard operation
material copied to clipboard

Material Accordion

Open ask007learning opened this issue 11 years ago • 40 comments

How about adding accordion feature to Angularjs material. See example

screen shot 2015-03-25 at 3 16 52 pm

http://codepen.io/LukaszWatroba/pen/pvEOBZ

ask007learning avatar Mar 10 '15 22:03 ask007learning

+1

tapas4java avatar Mar 11 '15 00:03 tapas4java

@ask007java - This is very nicely done. We are working on enhancements to md-list with 'expando' features. @rschmukler - I think we should review @ask007java's solution(s) to make sure we accommodate all features and perf tricks.

ThomasBurleson avatar Mar 11 '15 16:03 ThomasBurleson

It also needs a few accessibility things, although it is in really good shape already! Given that accordions are not part of the Material Design spec, should this be deprioritized to happen after our current estimated feature set? (Note: list control is different than accordion)

marcysutton avatar Mar 11 '15 22:03 marcysutton

+1

mobelio avatar Mar 12 '15 17:03 mobelio

+1

brownish avatar Mar 12 '15 22:03 brownish

+1

hiennguyenle avatar Mar 15 '15 12:03 hiennguyenle

+1

danawhite avatar Mar 16 '15 18:03 danawhite

+1

kai23 avatar Mar 17 '15 17:03 kai23

+1

It's such a fundamental feature in most web-apps, particularly using sidebar menus. Looking desperately forward to this. What's the timeline look like with 'expando'?

Actually, looks like #985 would deal with this issue.

lee-40square avatar Mar 17 '15 17:03 lee-40square

:+1:

emmagamma avatar Mar 17 '15 17:03 emmagamma

+1

alanpurple avatar Mar 22 '15 20:03 alanpurple

+1

mbukosky avatar Mar 22 '15 23:03 mbukosky

@lee-40square - The list expando feature is for nested items; while the accordion feature is for collapsed items.

ThomasBurleson avatar Mar 25 '15 20:03 ThomasBurleson

+1

miguelchico avatar Apr 06 '15 10:04 miguelchico

+1

marlonmleite avatar Apr 06 '15 11:04 marlonmleite

+1

anyong avatar Apr 08 '15 18:04 anyong

I actually like the left side nav accordion style that you are using on your own Material website. Exposing that would not be as difficult since you are already using it yourself! :-)

sachin-bs avatar Apr 13 '15 13:04 sachin-bs

Question: If "Material Design" is all about modeling design after physical materials how does this spec fit? I agree that accordions are used everywhere (and have their use) but I hesitate to put them into an angular-material repository if they aren't part of the spec. I would be more inclined to put them into a non-spec repo specifically for these things.

Not to rain gloom on everyone's parade. Cheers!

robob4him avatar Apr 13 '15 14:04 robob4him

Well surely the accordion folder or cabinet (think big drawer of legal documents) is a good analogy. You flip through based on the labels and see the contents by opening it up. Not perfect, but there is certainly a parallel between the accordion folder and accordion navigation... not part of the spec, sure, but I agree with above comment that the one used on the angular material website nav is pretty ideal for a lot of use cases (especially for nav), and no reason not to include it or at least repackage it as a standalone component. On Apr 13, 2015 10:09 PM, "robob4him" [email protected] wrote:

Question: If "Material Design" is all about modeling design after physical materials how does this spec fit? I agree that accordions are used everywhere (and have their use) but I hesitate to put them into an angular-material repository if they aren't part of the spec. I would be more inclined to put them into a non-spec repo specifically for these things.

Not to rain gloom on everyone's parade. Cheers!

Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/1861#issuecomment-92369006.

anyong avatar Apr 13 '15 15:04 anyong

@anyong I'm not lost on the analogy of the accordion, I'm lost on it's purpose in material design. I'm entirely on point with @sachinny21 but this request is for content accordions, yes? A list view that can expand for content just sounds like a problem directly suited for navigational elements. (eg http://www.google.com/design/spec/layout/structure.html#structure-side-nav). Accordions in material design just don't seem to fit anywhere in the spec. Can someone point me to a section in the spec that gives this idea room to live?

robob4him avatar Apr 13 '15 16:04 robob4him