[TYPO3-core] RFC #16218: Bug/Feature: TCE-Forms does not use sprite icons -- this leads to inconsistency

Steffen Ritter info at rs-websystems.de
Mon Dec 27 13:33:32 CET 2010


Am 09.12.2010 00:08, schrieb Jeff Segars:
> Hey guys,
> I've noticed an issue with this patch and after digging for a while,
> haven't figured out a great way to address it.
>
> If you edit page properties and go to the appearance tab, you'll see
> that the styling for "Selected plugin" is off (see attached
> screenshots). In this particular case, there is no icon set for the
> empty item in the list, but the same bug occurs if a sprite icon is used
> for a list item instead of a normal background image.
>
> The issue is that line 1648 of t3lib_tceforms gets any relevant sprite
> icon classes and applies them to the select tag. .t3-icon is one of
> these classes and it make the select element 16x16 with a line height of
> 0 (the normal styling for sprite images in a span tag).
>
> The simplest solution for this part is to define a new CSS rule for
> select.t3-icon that that can override the height and width from .t3icon.
>
> After that, the problem is all about trying to use sprite images inside
> a select element. Since there's not a wrapping span around the sprite
> images, additional icons are displayed when the text is padded.
>
> Any great ideas on how to handle this? :)
>
> Thanks,
> Jeff
>
>
The attached follow-up has been committed to trunk in rev. 9908 to fix 
the Icons/SelectBox issues (which reverts the usage of sprite-icons with 
selectboxes as this is technically not possible at all).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: followUp16218.patch
Type: text/x-diff
Size: 1049 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101227/e0777300/attachment.patch>


More information about the TYPO3-team-core mailing list