diff options
author | Marc Englund <marc.englund@itmill.com> | 2008-11-24 14:36:01 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2008-11-24 14:36:01 +0000 |
commit | 8665aac686c47c11c7e056245098adc6b6fa8e01 (patch) | |
tree | 355d798442a4726045a59432cd9da0d980fbebb9 | |
parent | 3e063a16f832c0779fb0d86cf7bd13d59375e027 (diff) | |
download | vaadin-framework-8665aac686c47c11c7e056245098adc6b6fa8e01.tar.gz vaadin-framework-8665aac686c47c11c7e056245098adc6b6fa8e01.zip |
ComboBox focus outline fixed in Safari. For #2164
svn changeset:5965/svn branch:trunk
-rw-r--r-- | WebContent/ITMILL/themes/default/select/select.css | 9 | ||||
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/WebContent/ITMILL/themes/default/select/select.css b/WebContent/ITMILL/themes/default/select/select.css index b56c6bc2f2..d02d8b24c5 100644 --- a/WebContent/ITMILL/themes/default/select/select.css +++ b/WebContent/ITMILL/themes/default/select/select.css @@ -84,8 +84,13 @@ font-size: 13px; } .i-filterselect-input:focus { - /* button clips safari outline otherwise (#1684) */ - outline-offset: -1px; + /* remove safari/mac outline from this element */ + outline: 0px; +} +.i-filterselect-focus { + /* place safari focus outline around the whole thing */ + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -4px; } .i-filterselect-button { diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java index 26d8810eff..af376b330a 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java @@ -786,6 +786,7 @@ public class IFilterSelect extends Composite implements Paintable, Field, tb.setText(""); // TODO remove class CLASSNAME_EMPTY } + addStyleDependentName("focus"); } public void onLostFocus(Widget sender) { @@ -797,6 +798,7 @@ public class IFilterSelect extends Composite implements Paintable, Field, tb.setText(emptyText); // TODO add CLASSNAME_EMPTY } + removeStyleDependentName("focus"); } public void focus() { |