Commit 3bfb8a37 authored by Moe Ahmadi's avatar Moe Ahmadi Committed by Chromium LUCI CQ

[realbox] Makes all text in realbox impossible to select

crrev.com/c/2566505 made all text in realbox dropdown unselectable.

This CL extends that to the realbox placeholder as well. Note that
non-placeholder text in the realbox input remains selectable after
this change.

Fixed: 1154576
Change-Id: I80d13521680a165c56e2a7d98eff82c885ff3da4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2572680
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Auto-Submit: Moe Ahmadi <mahmadi@chromium.org>
Reviewed-by: default avatarTibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833512}
parent c1f1a34a
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
border-radius: calc(0.5 * var(--ntp-realbox-height)); border-radius: calc(0.5 * var(--ntp-realbox-height));
box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .28); box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .28);
height: var(--ntp-realbox-height); height: var(--ntp-realbox-height);
user-select: none;
} }
:host([matches-are-visible]) { :host([matches-are-visible]) {
......
<style> <style>
:host { :host {
font-size: 16px; font-size: 16px;
user-select: none;
} }
#selector { #selector {
......
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