Commit 3f352b50 authored by Tim Song's avatar Tim Song Committed by Commit Bot

Ash Tray: Fix ChromeVox traversal of feature pods.

BUG=1021133

Change-Id: I7785f3184be08c33e333b6c918ba97762c25d986
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1940611Reviewed-by: default avatarAhmed Mehfooz <amehfooz@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720670}
parent 6528e5ad
......@@ -16,6 +16,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/animation/flood_fill_ink_drop_ripple.h"
#include "ui/views/animation/ink_drop_highlight.h"
#include "ui/views/animation/ink_drop_impl.h"
......@@ -51,6 +52,7 @@ FeaturePodIconButton::FeaturePodIconButton(views::ButtonListener* listener,
SetImageVerticalAlignment(ALIGN_MIDDLE);
TrayPopupUtils::ConfigureTrayPopupButton(this);
views::InstallCircleHighlightPathGenerator(this);
GetViewAccessibility().OverrideIsLeaf(true);
}
FeaturePodIconButton::~FeaturePodIconButton() = default;
......@@ -137,6 +139,7 @@ FeaturePodLabelButton::FeaturePodLabelButton(views::ButtonListener* listener)
sub_label_(new views::Label),
detailed_view_arrow_(new views::ImageView) {
SetBorder(views::CreateEmptyBorder(kUnifiedFeaturePodHoverPadding));
GetViewAccessibility().OverrideIsLeaf(true);
ConfigureFeaturePodLabel(label_);
ConfigureFeaturePodLabel(sub_label_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment