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
Restore the functionality of JToolBarHelper::spacer('50px'); #11927
Conversation
we would expect a space of 50px between the edit and the publish button
Why would we expect that?
|
I have tested this item 🔴 unsuccessfully on deca964 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11927. |
As we add the code that at there is a spacer with 50px ;) |
i think i misunderstand something On 4 September 2016 at 18:51, Brian Teeman brian@teeman.net wrote:
Brian Teeman |
Correct. But i don't see a reason that this is removed. But if it should be still removed than we should deprecte that and not pointing it to a clear layout that makes no sense. At least ist works for me with that patch so way not restore that was removed 2014? |
Your patch worked for me as well. But I'm sure that @rdeutz must have had a On 4 September 2016 at 19:53, zero-24 notifications@github.com wrote:
Brian Teeman |
Another reason might be: styling should be done (preferably) using classes not inline |
@zero-24 Confusing and senseless at the moment: calls class
that is empty. I don't know if it's better to add a new method JToolBarHelper::separator() or a new JLayout spacer.php or something. At the moment it's a completely confusing mixture of names and not obvious which JLayout one can use for overrides. And no, I wouldn't remove Spacer/Separator or deprecate it. |
@dgt41 I'm no CSS expert do we have a way to dynamic style via CSS from PHP? In a goog and clean way ;) Thanks @bertmert what do you suggest maybe we can proxy both methods to one layout or should they do different things? |
None that I know. But to be fair here joomla is using inline css all over the place so one more won't be the end of the world. Although modern design dictates that styling should be done with classes. So no real objection, just a note 😄 |
"JToolBarHelper::spacer" is not used inside of standard joomla code. On the other side |
I removed it because you can't use it this way, it opens and close a "btn-group" and that doesn't makes sense. There must be something within the group. Further more it isn't a separator then. |
So we should close here and mark that methods as deprected? |
close yes, but there might be a css framework that supports a thing like separator it the future, who knows ;-) |
Closing as requested |
Hey, for five minutes "JToolBarHelper::spacer" and "JToolbarHelper::divider()" were working in the future. JToolbarHelper::divider() is mentioned in the component development |
that comes from the 2.5 days, but since we are using bootstrap there is not markup for this |
But what is the problem to use a dive with xxx pixels? What kind of markup do we need? |
no problem, what I am saying is:
not sure what we need to add to make it accessible, that would need an expert on this area |
Pull Request for Issue found in the german forum https://forum.joomla.de/index.php/Thread/2505-Abstand-zwischen-task-buttons
Summary of Changes
This restores the seperator / spacer functionality this is broken since arround 2014
Testing Instructions
JToolBarHelper::spacer('50px');
edit
and thepublish
buttonDocumentation Changes Required
None