From d783daa13d1ed54dcaf98c9e1e6c9905a145e0bb Mon Sep 17 00:00:00 2001 From: yawano Date: Fri, 7 Aug 2015 02:08:25 -0700 Subject: [PATCH] Gallery: replace paper-input of rename field with HTMLInputElement. Since ChromeVox does not support Shadow DOM for now, paper-input with Shadow DOM is not accessible. As temporary solution until it supports Shadow DOM, we replace paper-input with HTMLInputElement. BUG=517774 TEST=none Review URL: https://codereview.chromium.org/1275323002 Cr-Commit-Position: refs/heads/master@{#342322} --- ui/file_manager/gallery/css/gallery.css | 7 ++++--- ui/file_manager/gallery/gallery.html | 5 ++++- ui/file_manager/gallery/js/gallery.js | 12 +++++------- ui/file_manager/gallery/js/test_util.js | 8 +++----- ui/file_manager/integration_tests/remote_call.js | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ui/file_manager/gallery/css/gallery.css b/ui/file_manager/gallery/css/gallery.css index 978c9a4a407e..a1a3fd42fa6a 100644 --- a/ui/file_manager/gallery/css/gallery.css +++ b/ui/file_manager/gallery/css/gallery.css @@ -316,14 +316,15 @@ paper-slider::shadow .expand:not(.pin) > #sliderKnob > #sliderKnobInner { flex: 1 0 auto; } -.filename-spacer paper-input { +#rename-input { margin: 8px 0; min-width: 160px; + padding: 4px 0; width: -webkit-fit-content; } -.filename-spacer paper-input::shadow paper-input-container { - padding: 4px 0; +#rename-input > input { + color: white; } /* Bubble */ diff --git a/ui/file_manager/gallery/gallery.html b/ui/file_manager/gallery/gallery.html index fcbb75dfd695..93900d64980d 100644 --- a/ui/file_manager/gallery/gallery.html +++ b/ui/file_manager/gallery/gallery.html @@ -46,7 +46,10 @@
- + + + +