[TYPO3-core] RFC #16218: Bug/Feature: TCE-Forms does not use sprite icons -- this leads to inconsistency
Jeff Segars
jsegars at alumni.rice.edu
Thu Dec 9 00:08:54 CET 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Firefox.png
Type: image/png
Size: 19172 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101208/2b6d696d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Safari.png
Type: image/png
Size: 5353 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101208/2b6d696d/attachment-0003.png>
More information about the TYPO3-team-core
mailing list