Bug 202428 - results.webkit.org: Standardize styles in the drawer
Summary: results.webkit.org: Standardize styles in the drawer
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-10-01 13:11 PDT by Jonathan Bedard
Modified: 2019-10-01 16:47 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.72 KB, patch)
2019-10-01 13:22 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
dark-mode-screenshot (103.56 KB, image/png)
2019-10-01 13:25 PDT, Jonathan Bedard
no flags Details
standard-screenshot (91.06 KB, image/png)
2019-10-01 13:25 PDT, Jonathan Bedard
no flags Details
Patch (6.84 KB, patch)
2019-10-01 14:48 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch for landing (6.84 KB, patch)
2019-10-01 15:58 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2019-10-01 13:11:48 PDT
At the moment, we have a disparate collection of font sizes, weights and colors in the control drawer. We should standardize these.
Comment 1 Jonathan Bedard 2019-10-01 13:22:57 PDT
Created attachment 379939 [details]
Patch
Comment 2 Jonathan Bedard 2019-10-01 13:25:08 PDT
Created attachment 379940 [details]
dark-mode-screenshot
Comment 3 Jonathan Bedard 2019-10-01 13:25:25 PDT
Created attachment 379941 [details]
standard-screenshot
Comment 4 Zhifei Fang 2019-10-01 13:47:02 PDT
Comment on attachment 379939 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=379939&action=review

> Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:2279
> +  font-color: var(--boldInverseColor);

Since bold is control by font-weight, maybe we should call this inverseColor ?

> Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:2334
> +  font-weight: calc(2.5 * var(--fontWeight));

We need overwrite the whole default user agent for input and select, better to have one extra section as:

select, input {
   font-weight: var(--fontWeight)
}

Webkit have a default font-weight:400 for select and input, only bold those seems weird to me. 
You may need to add this after line 478

> Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:2363
> +  color: var(--boldInverseColor);

if the input is disabled, it should have a different color. It should have a different color. Otherwise it will be hard for user to understand this input is disabled, you may need other --DisableInverseColor
Comment 5 Jonathan Bedard 2019-10-01 14:46:19 PDT
Comment on attachment 379939 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=379939&action=review

>> Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:2363
>> +  color: var(--boldInverseColor);
> 
> if the input is disabled, it should have a different color. It should have a different color. Otherwise it will be hard for user to understand this input is disabled, you may need other --DisableInverseColor

We probably do want that long term, but for now, I'll just keep this the way it is.
Comment 6 Zhifei Fang 2019-10-01 14:47:38 PDT
Comment on attachment 379939 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=379939&action=review

>>> Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:2363
>>> +  color: var(--boldInverseColor);
>> 
>> if the input is disabled, it should have a different color. It should have a different color. Otherwise it will be hard for user to understand this input is disabled, you may need other --DisableInverseColor
> 
> We probably do want that long term, but for now, I'll just keep this the way it is.

it is better to do a inline style if you want to keep the way it is.
Comment 7 Jonathan Bedard 2019-10-01 14:48:49 PDT
Created attachment 379952 [details]
Patch
Comment 8 Jonathan Bedard 2019-10-01 14:51:47 PDT
(In reply to Jonathan Bedard from comment #7)
> Created attachment 379952 [details]
> Patch

Doesn't actually change the way the results database looks, so I didn't update the screenshots.
Comment 9 Jonathan Bedard 2019-10-01 15:10:16 PDT
(In reply to Zhifei Fang from comment #6)
> Comment on attachment 379939 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=379939&action=review
> 
> >>> Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:2363
> >>> +  color: var(--boldInverseColor);
> >> 
> >> if the input is disabled, it should have a different color. It should have a different color. Otherwise it will be hard for user to understand this input is disabled, you may need other --DisableInverseColor
> > 
> > We probably do want that long term, but for now, I'll just keep this the way it is.
> 
> it is better to do a inline style if you want to keep the way it is.

Not actually sure why I changed it...by 'keep the way it is', I mean keeping it var(--greyDarker), not keeping my change (since I realize that was a bit ambiguous)
Comment 10 Zhifei Fang 2019-10-01 15:15:45 PDT
unofficially r=me
Comment 11 Aakash Jain 2019-10-01 15:42:56 PDT
rs=me
Comment 12 Jonathan Bedard 2019-10-01 15:58:42 PDT
Created attachment 379963 [details]
Patch for landing
Comment 13 WebKit Commit Bot 2019-10-01 16:46:09 PDT
Comment on attachment 379963 [details]
Patch for landing

Clearing flags on attachment: 379963

Committed r250587: <https://trac.webkit.org/changeset/250587>
Comment 14 WebKit Commit Bot 2019-10-01 16:46:10 PDT
All reviewed patches have been landed.  Closing bug.
Comment 15 Radar WebKit Bug Importer 2019-10-01 16:47:20 PDT
<rdar://problem/55895241>