[TYPO3-core] RFC #7906: Add icon to selected entry (currently icons are only shown in dropdown)

Oliver Hader oliver at typo3.org
Mon Mar 31 20:55:39 CEST 2008


Hi Kasper,

Kasper Ligaard schrieb:
> This is an SVN patch request.
>         
> Type: UI improvement/consistency
> 
> Bugtracker references: http://bugs.typo3.org/view.php?id=7962
> (screenshot attached to issue).
>         
> Branches: TYPO3_4-2
> 
> Problem:
> Dropdown boxes shown icons in the dropdown menu only, i.e. when you open
> the dropdown box, you see icons; when the dropdown box is closed there
> is no icon.
> 
> Solution:
> The attached patch adds the necessary style attribute to the <select>
> element, so that the icon is also shown when the dropdown box is closed.
>         
> Notes:
> - As the patch only adds a style attribute, the risk is very low.
> - The icons are not shown in Opera (with or without the patch - it's an
> Opera thing).

+					$selectedStyle = ' style="background-image: 
url('.$selectIconFile.'); background-repeat: no-repeat; 
background-position: 0% 50%; padding: 1px; padding-left: 22px;"';

Would there be a possibility to put the static styles (bg-pos, padding, 
bg-repeat, ...) to stylesheet.css?

Furthermore, long entries of extensions, which do not have an icon yet, 
are cropped (see screenshot in attachment for a plugin with the name 
"Newsletter Subscription").

olly
-- 
Oliver Hader
TYPO3 Core Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: selector.png
Type: image/png
Size: 12971 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080331/75b10c04/attachment-0001.png 


More information about the TYPO3-team-core mailing list