Skip to content

Commit 5110efe

Browse files
committed
results.webkit.org: Fix drawer style
https://bugs.webkit.org/show_bug.cgi?id=200988 Rubber-stamped by Aakash Jain. * resultsdbpy/resultsdbpy/view/static/js/drawer.js: (Drawer): Nothing in the drawer should be selectable. (ConfigurationSelectors): Standardize text size, remove underscore from expanders. * resultsdbpy/resultsdbpy/view/static/library/css/webkit.css: (.action:hover): Disable underline on 'links' which are actually actions (.unselectable): Make a div unselectable. * resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js: (Timeline.ExpandableSeriesWithHeaderExpanderComponent): Remove underscore from expanders. Canonical link: https://commits.webkit.org/214733@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 0e703e5 commit 5110efe

4 files changed

Lines changed: 31 additions & 4 deletions

File tree

Tools/ChangeLog

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
2019-08-21 Jonathan Bedard <jbedard@apple.com>
2+
3+
results.webkit.org: Fix drawer style
4+
https://bugs.webkit.org/show_bug.cgi?id=200988
5+
6+
Rubber-stamped by Aakash Jain.
7+
8+
* resultsdbpy/resultsdbpy/view/static/js/drawer.js:
9+
(Drawer): Nothing in the drawer should be selectable.
10+
(ConfigurationSelectors): Standardize text size, remove underscore from expanders.
11+
* resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:
12+
(.action:hover): Disable underline on 'links' which are actually actions
13+
(.unselectable): Make a div unselectable.
14+
* resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:
15+
(Timeline.ExpandableSeriesWithHeaderExpanderComponent): Remove underscore from expanders.
16+
117
2019-08-21 Fujii Hironori <Hironori.Fujii@sony.com>
218

319
[Win][MiniBrowser] Add a progress indicator to the main window

Tools/resultsdbpy/resultsdbpy/view/static/js/drawer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function Drawer(controls = []) {
5959
}
6060
});
6161

62-
return `<div class="drawer left under-topbar-with-actions" ref="${drawerRef}">
62+
return `<div class="drawer left under-topbar-with-actions unselectable" ref="${drawerRef}">
6363
${controls.map(control => {
6464
return `<div class="list">
6565
<div class="item">${control}</div>
@@ -226,7 +226,7 @@ function ConfigurationSelectors(callback) {
226226
}
227227
});
228228

229-
DOM.inject(element, `<a style="cursor: pointer;" class="text medium" ref="${expander}">+</a>
229+
DOM.inject(element, `<a class="link-button text medium" ref="${expander}">+</a>
230230
${details.name} <br>
231231
${options.map(option => {
232232
let isChecked = false;
@@ -275,7 +275,7 @@ function ConfigurationSelectors(callback) {
275275
ref.setState(configurations);
276276
});
277277

278-
return `<div ref="${ref}"></div>`;
278+
return `<div style="font-size: var(--smallSize);" ref="${ref}"></div>`;
279279
}).join('')
280280
}
281281

Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ a:hover {
194194
text-decoration: underline;
195195
}
196196

197+
.link-button:hover {
198+
text-decoration: none;
199+
cursor: pointer;
200+
}
201+
197202
.divider, hr {
198203
margin-block-start: 0.5em;
199204
margin-block-end: 0.5em;
@@ -2555,3 +2560,9 @@ pre {
25552560
.progress-bar-container .progress-bar.error {
25562561
background: var(--orange);
25572562
}
2563+
2564+
.unselectable {
2565+
-webkit-touch-callout: none;
2566+
-webkit-user-select: none;
2567+
user-select: none;
2568+
}

Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ Timeline.ExpandableSeriesWithHeaderExpanderComponent = (mainSeriesWithLable, ...
535535
})
536536
}));
537537
return {
538-
header: Timeline.ExpandableHeaderComponent(`<a href="javascript:void(0)" ref="${ref}">+</a>` + mainLabel, subLabels, composer),
538+
header: Timeline.ExpandableHeaderComponent(`<a class="link-button" href="javascript:void(0)" ref="${ref}">+</a>` + mainLabel, subLabels, composer),
539539
series: Timeline.ExpandableSeriesComponent(mainSeries, subSerieses, composer),
540540
}
541541
}

0 commit comments

Comments
 (0)