[DSBD] Update style for the enterprise signals disclaimer ui [chromium/src : main]

0 views
Skip to first unread message

Stanisław Solarewicz (Gerrit)

unread,
Jul 8, 2026, 5:04:20 AM (yesterday) Jul 8
to Nicolas Ouellet-Payeur, Sasha Kunitskaya, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Nicolas Ouellet-Payeur and Sasha Kunitskaya

Stanisław Solarewicz voted and added 1 comment

Votes added by Stanisław Solarewicz

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 15 (Latest):
Stanisław Solarewicz . resolved

Hello, could you please take a look?

Nicolas - the enterprise parts
Sasha - the frontend parts

Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Nicolas Ouellet-Payeur
  • Sasha Kunitskaya
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I7412876781d2b33667f8218ed25c2fe8817bca0a
Gerrit-Change-Number: 7984404
Gerrit-PatchSet: 15
Gerrit-Owner: Stanisław Solarewicz <ssola...@chromium.org>
Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
Gerrit-Reviewer: Sasha Kunitskaya <sask...@google.com>
Gerrit-Reviewer: Stanisław Solarewicz <ssola...@chromium.org>
Gerrit-Attention: Sasha Kunitskaya <sask...@google.com>
Gerrit-Attention: Nicolas Ouellet-Payeur <nico...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 09:04:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Sasha Kunitskaya (Gerrit)

unread,
Jul 8, 2026, 9:12:45 AM (yesterday) Jul 8
to Stanisław Solarewicz, Nicolas Ouellet-Payeur, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Nicolas Ouellet-Payeur and Stanisław Solarewicz

Sasha Kunitskaya added 5 comments

Patchset-level comments
Sasha Kunitskaya . resolved

thanks, looks good overall, i've left a few comments (not a full review yet)

File chrome/browser/resources/signin/icons.html
Line 29, Patchset 15 (Latest): <g id="account-circle" viewBox="0 -960 960 960">
<path
d="M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm146.5-204.5Q340-521 340-580t40.5-99.5Q421-720 480-720t99.5 40.5Q620-639 620-580t-40.5 99.5Q539-440 480-440t-99.5-40.5ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm100-95.5q47-15.5 86-44.5-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160q53 0 100-15.5ZM523-537q17-17 17-43t-17-43q-17-17-43-17t-43 17q-17 17-17 43t17 43q17 17 43 17t43-17Zm-43-43Zm0 360Z">
</path>
</g>
Sasha Kunitskaya . unresolved

is this needed?

File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_app.html.ts
Line 26, Patchset 15 (Latest): ${this.showSignalsDisclaimer_ ? html`
<managed-user-profile-notice-disclosure-device-signals
Sasha Kunitskaya . unresolved

Question: I see a slight naming inconsistency:

  • `managed-user-profile-notice-disclosure-device-signals` as element name
  • `SignalsDisclaimer` in .ts (methods/css class name/in `State` in browser_proxy)
  • `DEVICE_SIGNALS_DISCLAIMER` in `ScreenType` in browser_proxy
  • `deviceSignals...Label` in strings in managed_user_profile_notice_ui.cc

Is it intended? Does it make sense to unify them to sth like "SignalsDisclaimer"/"DeviceSignalsDisclaimer" everywhere?

File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_disclosure_device_signals.css
Line 18, Patchset 15 (Latest): font-family: 'Google Sans Text', Roboto;
Sasha Kunitskaya . unresolved

here and below: remove `font-family` and `font-style` (these properties are inherited and have no effect here)

also please check if `font-weight` and `line-height` across the file have effect. They may have the values you set manually by default for given elements.

Line 96, Patchset 15 (Latest): border-radius: 24px;
Sasha Kunitskaya . unresolved

nit: sort properties alphabetically across the file (I use AI for this, as I work in Cider and it doesn't format css files automatically by one button, as other files)

Open in Gerrit

Related details

Attention is currently required from:
  • Nicolas Ouellet-Payeur
  • Stanisław Solarewicz
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I7412876781d2b33667f8218ed25c2fe8817bca0a
    Gerrit-Change-Number: 7984404
    Gerrit-PatchSet: 15
    Gerrit-Owner: Stanisław Solarewicz <ssola...@chromium.org>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-Reviewer: Sasha Kunitskaya <sask...@google.com>
    Gerrit-Reviewer: Stanisław Solarewicz <ssola...@chromium.org>
    Gerrit-Attention: Stanisław Solarewicz <ssola...@chromium.org>
    Gerrit-Attention: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 13:12:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sasha Kunitskaya (Gerrit)

    unread,
    Jul 8, 2026, 11:33:06 AM (23 hours ago) Jul 8
    to Stanisław Solarewicz, Nicolas Ouellet-Payeur, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Nicolas Ouellet-Payeur and Stanisław Solarewicz

    Sasha Kunitskaya added 5 comments

    Patchset-level comments
    Sasha Kunitskaya . resolved

    I think first round is complete from my side :) thanks!

    File chrome/browser/resources/signin/icons.html
    Line 29, Patchset 15 (Latest): <g id="account-circle" viewBox="0 -960 960 960">
    <path
    d="M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm146.5-204.5Q340-521 340-580t40.5-99.5Q421-720 480-720t99.5 40.5Q620-639 620-580t-40.5 99.5Q539-440 480-440t-99.5-40.5ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm100-95.5q47-15.5 86-44.5-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160q53 0 100-15.5ZM523-537q17-17 17-43t-17-43q-17-17-43-17t-43 17q-17 17-17 43t17 43q17 17 43 17t43-17Zm-43-43Zm0 360Z">
    </path>
    </g>
    Sasha Kunitskaya . unresolved

    is this needed?

    Sasha Kunitskaya

    upd: i see, it's used in html file

    File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_app_refresh.ts
    Line 268, Patchset 15 (Latest): assertNotReached();
    Sasha Kunitskaya . unresolved

    I think it'd be safer to use `return this.i18n('deviceSignalsContinueLabel');`

    In general for `managed_user_profile_notice_app_refresh` the idea is to copy the behavior of the original `managed_user_profile_notice_app`, as with the `refresh` feature flag on it's fully replacing it.

    It's not the best for adding changes, to duplicate them across two files, but I think it may be the correct option currently...

    You can test locally with `--enable-features=FirstRunDesktopRefresh` to see if it works.

    File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_disclosure_device_signals.html.ts
    Line 11, Patchset 15 (Latest): return html`<!--_html_template_start_-->
    Sasha Kunitskaya . unresolved
    Line 23, Patchset 15 (Latest): this.i18n('deviceSignalsDisclosureTitle')}</h1>
    Sasha Kunitskaya . unresolved

    nit: I guess better to use double indentation here: "Indent 4 spaces when wrapping a previous line."

    source https://chromium.googlesource.com/chromium/src/+/HEAD/docs/webui/webui_lit_style_guide.md#formatting

    Gerrit-Comment-Date: Wed, 08 Jul 2026 15:32:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Sasha Kunitskaya <sask...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nicolas Ouellet-Payeur (Gerrit)

    unread,
    Jul 8, 2026, 3:38:06 PM (19 hours ago) Jul 8
    to Stanisław Solarewicz, Sasha Kunitskaya, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Stanisław Solarewicz

    Nicolas Ouellet-Payeur added 3 comments

    File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_disclosure_device_signals.css
    Line 22, Patchset 15 (Latest): display: flex;
    flex-direction: column;
    Nicolas Ouellet-Payeur . unresolved

    Is this actually needed? This is basically "lay out elements vertically", but that's already how HTML works by default. Or am I missing something?

    Line 32, Patchset 15 (Latest): position: relative;
    Nicolas Ouellet-Payeur . unresolved

    How confident are you that all of these CSS attrs are needed? It seems like a lot of the layout/positioning attrs are redundant. TBF it's always hard to tell just by reading the CSS

    Line 123, Patchset 15 (Latest):.disclaimer .icon {
    Nicolas Ouellet-Payeur . unresolved

    optional nit: since Chrome 120 we have CSS nesting. Feel free to use it! within reason :)

    ```
    .disclaimer {
    align-items: center;
    ...
      &:first-child { ... }
    h2 { ... }
    p { ... }
    }
    ```

    btw you can filter based on "outside context" too e.g.

    ```
    .disclaimer-container {
    ...
      &:first-child { ... }
    .profile-picker & { /* same as `.profile-picker .disclaimer-container` */ }
    .modal-dialog & { /* same as `.modal-dialog .disclaimer-container` */ }
    }
    ```
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Stanisław Solarewicz
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I7412876781d2b33667f8218ed25c2fe8817bca0a
    Gerrit-Change-Number: 7984404
    Gerrit-PatchSet: 15
    Gerrit-Owner: Stanisław Solarewicz <ssola...@chromium.org>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-Reviewer: Sasha Kunitskaya <sask...@google.com>
    Gerrit-Reviewer: Stanisław Solarewicz <ssola...@chromium.org>
    Gerrit-Attention: Stanisław Solarewicz <ssola...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 19:37:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Stanisław Solarewicz (Gerrit)

    unread,
    8:31 AM (2 hours ago) 8:31 AM
    to Nicolas Ouellet-Payeur, Sasha Kunitskaya, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Nicolas Ouellet-Payeur and Sasha Kunitskaya

    Stanisław Solarewicz added 10 comments

    File chrome/browser/resources/signin/icons.html
    Line 29, Patchset 15: <g id="account-circle" viewBox="0 -960 960 960">

    <path
    d="M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm146.5-204.5Q340-521 340-580t40.5-99.5Q421-720 480-720t99.5 40.5Q620-639 620-580t-40.5 99.5Q539-440 480-440t-99.5-40.5ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm100-95.5q47-15.5 86-44.5-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160q53 0 100-15.5ZM523-537q17-17 17-43t-17-43q-17-17-43-17t-43 17q-17 17-17 43t17 43q17 17 43 17t43-17Zm-43-43Zm0 360Z">
    </path>
    </g>
    Sasha Kunitskaya . resolved

    is this needed?

    Sasha Kunitskaya

    upd: i see, it's used in html file

    Stanisław Solarewicz

    Exactly, this is used for the Personal information details card.

    File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_app.html.ts
    Line 26, Patchset 15: ${this.showSignalsDisclaimer_ ? html`
    <managed-user-profile-notice-disclosure-device-signals
    Sasha Kunitskaya . resolved

    Question: I see a slight naming inconsistency:

    • `managed-user-profile-notice-disclosure-device-signals` as element name
    • `SignalsDisclaimer` in .ts (methods/css class name/in `State` in browser_proxy)
    • `DEVICE_SIGNALS_DISCLAIMER` in `ScreenType` in browser_proxy
    • `deviceSignals...Label` in strings in managed_user_profile_notice_ui.cc

    Is it intended? Does it make sense to unify them to sth like "SignalsDisclaimer"/"DeviceSignalsDisclaimer" everywhere?

    Stanisław Solarewicz

    Good point, I updated the code to unify under `signalsDisclaimer`.

    File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_app_refresh.ts
    Line 268, Patchset 15: assertNotReached();
    Sasha Kunitskaya . unresolved

    I think it'd be safer to use `return this.i18n('deviceSignalsContinueLabel');`

    In general for `managed_user_profile_notice_app_refresh` the idea is to copy the behavior of the original `managed_user_profile_notice_app`, as with the `refresh` feature flag on it's fully replacing it.

    It's not the best for adding changes, to duplicate them across two files, but I think it may be the correct option currently...

    You can test locally with `--enable-features=FirstRunDesktopRefresh` to see if it works.

    Stanisław Solarewicz

    I'd much rather keep this assertion. The signals_disclaimer is not meant to be shown within the refreshed UI. At the moment the signals disclaimer is always shown with the old UI URL so it should never hit the assertion. If the assertion is hit in the future we will know that someone is doing something wrong.

    Let's remove this assertion once we explicitly decide to show the signals disclaimer on the refreshed UI. What do you think?

    I've run with `--enable-features=FirstRunDesktopRefresh` nothing happend.

    File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_disclosure_device_signals.css
    Line 18, Patchset 15: font-family: 'Google Sans Text', Roboto;
    Sasha Kunitskaya . resolved

    here and below: remove `font-family` and `font-style` (these properties are inherited and have no effect here)

    also please check if `font-weight` and `line-height` across the file have effect. They may have the values you set manually by default for given elements.

    Stanisław Solarewicz

    Thanks for pointing this out! `font-weight` and `line-height` do seem to have an effect so I leave them as is.

    Line 22, Patchset 15: display: flex;
    flex-direction: column;
    Nicolas Ouellet-Payeur . resolved

    Is this actually needed? This is basically "lay out elements vertically", but that's already how HTML works by default. Or am I missing something?

    Stanisław Solarewicz

    Indeed, please see my comment about redundant properties.

    Line 32, Patchset 15: position: relative;
    Nicolas Ouellet-Payeur . unresolved

    How confident are you that all of these CSS attrs are needed? It seems like a lot of the layout/positioning attrs are redundant. TBF it's always hard to tell just by reading the CSS

    Stanisław Solarewicz

    Not confident at all! I simply copied the existing css for the disclaimer and added my margins, colors and fonts.

    Prompted by your comment I have tasked Ai with getting rid of the redundant styles and the visual results remains unchanged, while a bulk has been removed.

    Line 96, Patchset 15: border-radius: 24px;
    Sasha Kunitskaya . resolved

    nit: sort properties alphabetically across the file (I use AI for this, as I work in Cider and it doesn't format css files automatically by one button, as other files)

    Stanisław Solarewicz

    Done

    Line 123, Patchset 15:.disclaimer .icon {
    Nicolas Ouellet-Payeur . resolved

    optional nit: since Chrome 120 we have CSS nesting. Feel free to use it! within reason :)

    ```
    .disclaimer {
    align-items: center;
    ...
      &:first-child { ... }
    h2 { ... }
    p { ... }
    }
    ```

    btw you can filter based on "outside context" too e.g.

    ```
    .disclaimer-container {
    ...
      &:first-child { ... }
    .profile-picker & { /* same as `.profile-picker .disclaimer-container` */ }
    .modal-dialog & { /* same as `.modal-dialog .disclaimer-container` */ }
    }
    ```
    Stanisław Solarewicz

    Hey that's pretty cool! Makes css much more readable. Implemented this for the profile-picker/modal-dialog distinctions.

    File chrome/browser/resources/signin/managed_user_profile_notice/managed_user_profile_notice_disclosure_device_signals.html.ts
    Line 11, Patchset 15: return html`<!--_html_template_start_-->
    Sasha Kunitskaya . resolved
    Stanisław Solarewicz

    Done

    Line 23, Patchset 15: this.i18n('deviceSignalsDisclosureTitle')}</h1>
    Sasha Kunitskaya . resolved

    nit: I guess better to use double indentation here: "Indent 4 spaces when wrapping a previous line."

    source https://chromium.googlesource.com/chromium/src/+/HEAD/docs/webui/webui_lit_style_guide.md#formatting

    Stanisław Solarewicz

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nicolas Ouellet-Payeur
    • Sasha Kunitskaya
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I7412876781d2b33667f8218ed25c2fe8817bca0a
    Gerrit-Change-Number: 7984404
    Gerrit-PatchSet: 17
    Gerrit-Owner: Stanisław Solarewicz <ssola...@chromium.org>
    Gerrit-Reviewer: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-Reviewer: Sasha Kunitskaya <sask...@google.com>
    Gerrit-Reviewer: Stanisław Solarewicz <ssola...@chromium.org>
    Gerrit-Attention: Sasha Kunitskaya <sask...@google.com>
    Gerrit-Attention: Nicolas Ouellet-Payeur <nico...@chromium.org>
    Gerrit-Comment-Date: Thu, 09 Jul 2026 12:31:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Sasha Kunitskaya <sask...@google.com>
    Comment-In-Reply-To: Nicolas Ouellet-Payeur <nico...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages