-
Notifications
You must be signed in to change notification settings - Fork 17
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
ENH: What to do with "Collapse" #471
Comments
Related to #51 |
I vote for option 1 |
@Timo-Breumelhof The toggleGroup sets a cookie, which the toggleSection does not. While we can probably do something, should we defer this for now? |
@johnhenley agreed v9 |
Or hopefully sooner. But not v8 |
@Timo-Breumelhof I can try this one if you want. I see it more clearly now. It needs to be refactored and generalized. Having two functions to essentially do the same thing is just lazy :) and the cookies code should be separated out. You have a "thing" (a section, a group, quick reply, whatever) that is "collapsible" with an "opened" or "closed" state. (As an aside, this is where our English falls flat. "Open" can be used as an adjective or a verb. "Close" is a just verb--or an adjective with an entirely different meaning:) "Closed" is the adjective. So I use "opened" which is clearer as the adjective opposite of "closed".) You open or close the "thing" which changes the icon and updates the cookie. Any "thing" that is collapsible deserves a cookie. You have a What do you think? |
Sounds good to me. |
Me too. |
@Timo-Breumelhof BTW, the cookie doesn't really work. If you load a topic, toggle the quick reply, then refresh the browser, the quick reply is visible again :) |
Please summarize your question in one sentence
The current collapse functionality is difficult to style and looks legacy.
Give a more extended description
We have the [GROUPCOLLAPSE] token.
Currently that loads an image and renders this:
I see two options to improve on this:
We change that it to a fontawesome icon and add a CSS class for the state. (dcf-open dcf-closed)
That way it looks better and is stylable without a lot of hacks.
We remove support for this and leave it to the Theme builder you add his own script?
Opinions?
The text was updated successfully, but these errors were encountered: