User tests: Successful: Unsuccessful:
Pull Request for Issue #9919
Adds dimensions for the default breadcrumbs seperator image
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
;) yes I realised that - still dont see the need for the dimensions on this type of image either
I'm now adding also dimensions to our component:
$location = JUri::root() . $attachment->getUrl();
$data = getimagesize($location);
$width = $data[0];
$height = $data[1];
<img src="<?php echo $attachment->getUrl(); ?>"<?php echo $attributesImg; ?> width="<?php echo $width ;?>" height="<?php echo $height ;?>" alt="" />
MY question about your original issue still remains
Yes, like Michael said, we need to JHtml::image() automagically parse the dimensions
This is needed for a w3c validation checks, or any other html checks like in the inspector from chrome (audit - ).
Now if you check a clean protostar template. he is showing a dimension notice to fix the height and width tag.
Please add that to your issue report. #9919
Just saying Improve without saying what should be improved is not helpful
Text updated on the issue.
You can close this pr.
Your fix works, but when have custom image it will break the height and size.
Category | ⇒ | Modules |
Now in order to override,
Why not adding a new parameter
(and maybe this parameter is not needed at all because overriding is disabled ? so we can just go ahead and always use CSS ?):
Separator type:
Thus existing sites will not break, the 2nd option will add a < span > with a css class to make it inline block (+ RTL check to add extra class)
To allow this to work for 3rd party templates, that do not add CSS for the class, we would need a default CSS ... to set the style of the arrow < span > box
but i am not sure in which file the CSS should go so that it get loaded always, e.g. in "system.css" or added from inside the HELPER using addStyleDeclaration() ? and anyone wanting to override would just prepend a body into the rule to make it of higher priority
@brianteeman
Also i have just now noticed, function signature is:
public static function image($file, $alt, $attribs = null, $relative = false, $path_rel = false)
you have changed 4th parameter, but the attribs is the 3rd parameter
[EDIT]
or i am looking at wrong file ?
cms/html/html.php
why not just use a utf8 character instead of images ....
example:
◄ = ◄
► = ►
◂ = ◂
▸ = ▸
And then you can add color or size in css.
Why not just close this as a non-issue ;)
On 15 April 2016 at 13:22, andrepereiradasilva notifications@github.com
wrote:
why not just use a utf8 character instead of images ....
example:
◄ = ◄
► = ►
◂ = ◂
▸ = ▸And then you can add color or size in css.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#9920 (comment)
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
Yes i think it is better to close this, it is not a bug, neither is too much of a problem as the image itself is too small to cause content repositioning on load
about my comments, i was just giving some feedback for anyone considering making another PR
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-04-15 12:42:52 |
Closed_By | ⇒ | brianteeman |
The quirk with this is if you aren't using the core image then you have to
hack the helper to set the right attribute values for your separator
image. Or make JHtml::image() automagically parse the dimensions.
On Thursday, April 14, 2016, Brian Teeman notifications@github.com wrote: