Skip to content

Commit 05725e2

Browse files
ajpianordworth
authored andcommitted
Selectable: Add default CSS for ui-selectable-helper to CSS framework to allow user override. Fixes #5607 - Selectable has helper css hardcoded in JS
1 parent dc646c0 commit 05725e2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

themes/base/jquery.ui.base.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
@import url("jquery.ui.dialog.css");
88
@import url("jquery.ui.progressbar.css");
99
@import url("jquery.ui.resizable.css");
10+
@import url("jquery.ui.selectable.css");
1011
@import url("jquery.ui.slider.css");
1112
@import url("jquery.ui.tabs.css");

themes/base/jquery.ui.selectable.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* Selectable
2+
----------------------------------*/
3+
.ui-selectable-helper { border:1px dotted black }

ui/jquery.ui.selectable.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ $.widget("ui.selectable", $.ui.mouse, {
5757

5858
this._mouseInit();
5959

60-
this.helper = $(document.createElement('div'))
61-
.css({border:'1px dotted black'})
62-
.addClass("ui-selectable-helper");
60+
this.helper = $("<div class='ui-selectable-helper'>");
6361
},
6462

6563
destroy: function() {

0 commit comments

Comments
 (0)