Changeset 248995 in webkit


Ignore:
Timestamp:
Aug 21, 2019 10:33:33 PM (5 years ago)
Author:
Jonathan Bedard
Message:

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.

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r248990 r248995  
     12019-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
    1172019-08-21  Fujii Hironori  <Hironori.Fujii@sony.com>
    218
  • trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/drawer.js

    r247664 r248995  
    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">
     
    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 => {
     
    276276        });
    277277
    278         return `<div ref="${ref}"></div>`;
     278        return `<div style="font-size: var(--smallSize);" ref="${ref}"></div>`;
    279279    }).join('')
    280280}
  • trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css

    r248926 r248995  
    195195}
    196196
     197.link-button:hover {
     198  text-decoration: none;
     199  cursor: pointer;
     200}
     201
    197202.divider, hr {
    198203  margin-block-start: 0.5em;
     
    25562561  background: var(--orange);
    25572562}
     2563
     2564.unselectable {
     2565  -webkit-touch-callout: none;
     2566  -webkit-user-select: none;
     2567  user-select: none;
     2568}
  • trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js

    r248910 r248995  
    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    }
Note: See TracChangeset for help on using the changeset viewer.