Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccordionPane #14

Closed
bitpshr opened this issue Feb 1, 2017 · 19 comments
Closed

AccordionPane #14

bitpshr opened this issue Feb 1, 2017 · 19 comments
Assignees
Milestone

Comments

@bitpshr
Copy link
Member

bitpshr commented Feb 1, 2017

Enhancement

Add an AccordionPanel component

@rishson
Copy link
Contributor

rishson commented Feb 1, 2017

So we need to list out the initial features.

Things to consider:

  • Can multiple sections be open at the same time, or only 1 section at a time?
  • Does the accordion's height stay constant, irrespective of the open section(s) content, or does it resize?
  • Can you disable sections?

For the initial implementation, my suggestion would be:

1 section open at once
height stays constant - (overflow sections if needed)
no disabled sections.

@rishson
Copy link
Contributor

rishson commented Feb 1, 2017

Also, I'd like to standardise on naming things that may have been called 'panel' in the past.
I've been using semantic ui for too long, but i've got used to the brevity of their widget naming, so we could have:

accordion
tab
sideBar
split

Thoughts?

@msssk
Copy link
Contributor

msssk commented Feb 1, 2017

I am also a fan of names being as long and descriptive as necessary, but no more. I think the "panel" suffix is often unnecessary.

For now, we should try to agree on the accordion name, and my vote goes to "accordion".

The overall naming scheme might be best tracked in a separate issue, but some quick thoughts:

  • tab: we probably want both tabs (or tabContainer?) and tab, yes?
  • split: this is a little lacking in descriptiveness for me... the "panel" suffix might actually be warranted

@rishson
Copy link
Contributor

rishson commented Feb 1, 2017

tab is a contentious one. I've always viewed tab as both the tabStrip and the tabContents (for want of better names.
tabPane and splitPane?
(I just dislike 'panel' as its too retro).

@rishson
Copy link
Contributor

rishson commented Feb 1, 2017

Which would give us:

  • tabPane
  • splitPane
  • slidePane
  • accordion
    ?

@bitpshr
Copy link
Member Author

bitpshr commented Feb 2, 2017

While I don't really care what suffix we use (e.g. "Pane" vs. "Panel" vs. anything else), I do think that every container component should use the same suffix. I think having one component that doesn't use it, like "Accordion", is confusing. This suffix sort of serves as an indicator that a component is a container-style component in my mind.

@msssk msssk mentioned this issue Feb 8, 2017
3 tasks
@rishson
Copy link
Contributor

rishson commented Feb 10, 2017

@bitpshr I've started to wonder if we need to consider all the widgets where the primary function is layout, such as :

  • menu
  • header
  • footer

To me, it seems clunky to have pane suffixes to these widgets. If the list was something like:

  • tabPane
  • splitPane
  • slidePane
  • accordion
  • menu
  • header
  • footer

then I think its ok to drop the suffix at times. [shrug_emoji]

@bitpshr
Copy link
Member Author

bitpshr commented Feb 10, 2017

@rishson sounds good to me.

@dylans dylans modified the milestones: 2017.02, 2017.03 Mar 1, 2017
@eheasley eheasley changed the title AccordionPanel AccordionPane Mar 14, 2017
@msssk
Copy link
Contributor

msssk commented Mar 14, 2017

Some questions on what we want from an accordion pane:

  • Should it accept arbitrary children? Or only TitlePanes?
  • Should it have an exclusive option to enforce only a single pane open at a time?

@bitpshr
Copy link
Member Author

bitpshr commented Mar 14, 2017

I don't think an AccordionPane should accept arbitrary children. If another widget is needed next to the internal TitlePanes, the widget should just be a sibling to the AccordionPane within a wrapping div.

I like the idea of an exclusive option.

@dylans dylans modified the milestones: 2017.03, 2017.04 Apr 2, 2017
@eheasley eheasley assigned mwistrand and unassigned msssk Apr 19, 2017
@sebilasse
Copy link
Contributor

Just wanted to mention that my Semantic UI dojo2 Integration also contains Accordion, posted a WIP preview here : dojo/widget-core#559

@dylans dylans modified the milestones: 2017.06, 2017.07 Jul 4, 2017
@kitsonk kitsonk modified the milestones: long-grass, 2017.07 Jul 28, 2017
@kitsonk kitsonk added the future label Jul 28, 2017
@eheasley
Copy link

eheasley commented Oct 3, 2017

We are very near completion on this as a result of working on related tasks, so we will go ahead and get this taken care of for beta 4.

@eheasley eheasley added the beta4 label Oct 3, 2017
@kitsonk kitsonk modified the milestones: long-grass, 2017.10 Oct 9, 2017
@bitpshr bitpshr mentioned this issue Oct 10, 2017
3 tasks
@kitsonk kitsonk modified the milestones: 2017.10, beta.4 Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants