Skip to content

Commit 448454f

Browse files
hanselfmu-chromiumDevtools-frontend LUCI CQ
authored andcommitted
Update Accessibility view's section title focus background
Before/After screenshots: https://g-issues.chromium.org/issues/433379039#comment3 Fixed: 433379039 Change-Id: Ic999f49da2cfbc39a05dd7bda492fc3de45e1b8d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6845662 Commit-Queue: Alex Rudenko <[email protected]> Auto-Submit: Changhao Han <[email protected]> Reviewed-by: Alex Rudenko <[email protected]>
1 parent f9eb4e2 commit 448454f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

front_end/panels/accessibility/AccessibilitySidebarView.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export class AccessibilitySidebarView extends UI.ThrottledWidget.ThrottledWidget
2626
private readonly sourceOrderSubPane: SourceOrderPane;
2727
private constructor(throttlingTimeout?: number) {
2828
super(false /* useShadowDom */, throttlingTimeout);
29+
this.element.classList.add('accessibility-sidebar-view');
2930
this.nodeInternal = null;
3031
this.axNodeInternal = null;
3132
this.skipNextPullNode = false;

front_end/ui/legacy/viewContainers.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* Copyright 2025 The Chromium Authors. All rights reserved.
2+
Use of this source code is governed by a BSD-style license that can be
3+
found in the LICENSE file. */
4+
15
/*
26
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
37
* Copyright (C) 2009 Anthony Ricaud <[email protected]>
@@ -65,6 +69,10 @@
6569

6670
.expandable-view-title:focus-visible {
6771
background-color: var(--sys-color-state-focus-highlight);
72+
73+
:host-context(.accessibility-sidebar-view) & {
74+
background-color: var(--sys-color-tonal-container);
75+
}
6876
}
6977

7078
@media (forced-colors: active) {

0 commit comments

Comments
 (0)