Skip to content

Commit 403c3e8

Browse files
committed
Workaround for jQuery UI Menu glitch on Chrome
1 parent a2d3944 commit 403c3e8

File tree

5 files changed

+57
-27
lines changed

5 files changed

+57
-27
lines changed

dist/textpattern/jquery-ui.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,7 @@ input.ui-button.ui-icon-notext .ui-icon {
13761376
}
13771377

13781378
.ui-menu .ui-menu-item {
1379+
display: block;
13791380
margin: 0;
13801381
cursor: pointer;
13811382
/* 2 */
@@ -1980,6 +1981,20 @@ input.ui-button.ui-icon-notext .ui-icon {
19801981
margin-left: -8px;
19811982
}
19821983

1984+
a.ui-icon,
1985+
a .ui-icon {
1986+
opacity: 0.66;
1987+
}
1988+
1989+
a:hover.ui-icon,
1990+
a:hover .ui-icon,
1991+
a:active.ui-icon,
1992+
a:active .ui-icon,
1993+
a:focus.ui-icon,
1994+
a:focus .ui-icon {
1995+
opacity: 1;
1996+
}
1997+
19831998
/**
19841999
* Default state icons.
19852000
*/

dist/textpattern/jquery-ui.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sass/modules/_icons.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@
3232
margin-left: -8px;
3333
}
3434

35+
a.ui-icon,
36+
a .ui-icon {
37+
opacity: 0.66;
38+
}
39+
40+
a:hover.ui-icon,
41+
a:hover .ui-icon,
42+
a:active.ui-icon,
43+
a:active .ui-icon,
44+
a:focus.ui-icon,
45+
a:focus .ui-icon {
46+
opacity: 1;
47+
}
48+
3549
/**
3650
* Default state icons.
3751
*/

src/sass/modules/_menu.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
}
8484

8585
.ui-menu-item {
86+
display: block;
8687
margin: 0;
8788
cursor: pointer;
8889
/* 2 */

0 commit comments

Comments
 (0)