Commit 2292ef33 authored by Sam Sebree's avatar Sam Sebree Committed by Commit Bot

[Controls Refresh] Regression: Focus is not seen on color selector icon when...

[Controls Refresh] Regression: Focus is not seen on color selector icon when the focus is traversed using Tab key.

This change addresses the bug in which the color picker selection
ring gets placed in the top left corner after closing a color picker
with (255,255,255) is selected.

Bug: 1046648
Change-Id: Idb82a962c0ba40338c4a38c5c5526dea7339c5a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032420Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Reviewed-by: default avatarSanket Joshi <sajos@microsoft.com>
Commit-Queue: Sam Sebree <sasebree@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#737900}
parent eb7c2571
......@@ -1014,6 +1014,7 @@ class ColorSelectionRing extends HTMLElement {
initialize() {
this.set(this.backingColorPalette_.left, this.backingColorPalette_.top);
this.onPositionChange_();
}
/**
......
<!DOCTYPE html>
<html>
<head>
<script>
testRunner.waitUntilDone();
</script>
<script src='../../../fast/forms/resources/picker-common.js'></script>
</head>
<body>
<input type='color' id='color' value='#FFFFFF'>
<p id='description' style='opacity: 0'></p>
<div id='console' style='opacity: 0'></div>
<script>
openPickerWithPromise(document.getElementById('color')).then(() => {
eventSender.keyDown('Enter');
openPicker(document.getElementById('color'),
() => testRunner.notifyDone(),
() => testRunner.notifyDone());
})
</script>
</body>
</html>
\ No newline at end of file
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