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

Missing space in Mod custom #9883

Closed
wants to merge 3 commits into from
Closed

Missing space in Mod custom #9883

wants to merge 3 commits into from

Conversation

N6REJ
Copy link
Contributor

@N6REJ N6REJ commented Apr 13, 2016

Pull Request for Issue # .

Summary of Changes

added the missing space between 'custom' and 'suffix'

Testing Instructions

create a custom module, look at the module class and you'll see "custom"
add a class suffix and you'll see "customYOURSUFFIX" this is not as expected, nor consistent with the rest of the module class suffix behaviors.
after this patch you'll see that it is now "custom YOURSUFFIX"

@N6REJ N6REJ closed this Apr 13, 2016
@N6REJ N6REJ reopened this Apr 13, 2016
@N6REJ
Copy link
Contributor Author

N6REJ commented Apr 13, 2016

not sure why its saying 3 commits but this is correct.

@mbabker
Copy link
Contributor

mbabker commented Apr 13, 2016

This is the expected (even if anti-UX) behavior. Leave no space and you
can completely remove the custom class and use it as a prefix for the
user's input class. Add a space and it adds additional class(es) to the
div.

On Tuesday, April 12, 2016, Bear notifications@github.com wrote:

Pull Request for Issue # .
Summary of Changes

added the missing space between 'custom' and 'suffix'
Testing Instructions

create a custom module, look at the module class and you'll see "custom"
add a class suffix and you'll see "customYOURSUFFIX" this is not as
expected, nor consistent with the rest of the module class suffix behaviors.

after this patch you'll see that it is now "custom YOURSUFFIX"

You can view, comment on, or merge this pull request online at:

#9883
Commit Summary

  • missing alpha.png
  • Merge origin/staging into staging
  • fixes missing space between 'custom' and suffix class names.

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#9883

@ggppdk
Copy link
Contributor

ggppdk commented Apr 13, 2016

@N6REJ
it is like this in all modules, not just for this module
and it has been always like this

and it is consistent with the parameter name "...sfx" and description
plus this change would cancel custom styling rules for existing websites (B/C break)

@brianteeman
Copy link
Contributor

Closing for the reasons stated above

@N6REJ
Copy link
Contributor Author

N6REJ commented Apr 13, 2016

the problem is that its inconsistent with the rest of class suffix's. before it was like this for ALL suffix's ( components ) and modules, or am I mistaken?

@ggppdk
Copy link
Contributor

ggppdk commented Apr 14, 2016

You can do a recursive text search in the modules folder

<?php echo $moduleclass_sfx

you will see that all

  • Joomla modules
  • majority (but not all (their choice ...)) of 3rd party modules

do not add space

and if you want to add a new class to it, just use the parameter like this:
_mySuffix myClassName

thus this:
custom

will become:
custom_mySuffix myClassName

@N6REJ N6REJ deleted the mod_custom branch April 18, 2016 00:53
@Mocha365
Copy link

It's 2017 and just found this Pull Request (which I see is closed), so am I missing something or has the missing space been put back in as missing? Joomla 3.7.4 has most if not all modules "still" missing the space. Example of what is still showing

<div class="custom<?php echo $moduleclass_sfx; ?>

There's no space after "custom" or in other modules. Right now, adding a class suffix to any module results in:

moduletablemyclass

instead of:

moduletable myclass

@mbabker
Copy link
Contributor

mbabker commented Aug 13, 2017

As stated above, it's an explicit design decision. With no space, you can suffix the class that comes before it in a layout (in this case, the custom class) which would let you completely remove that class from things, or you can prefix your input with a space and add additional classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants