Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3021)

Unified Diff: chrome/browser/resources/settings/md_select_css.html

Issue 2384273005: MD Settings: Style native <select> down arrow. (Closed)
Patch Set: Nit Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/md_select_css.html
diff --git a/chrome/browser/resources/settings/md_select_css.html b/chrome/browser/resources/settings/md_select_css.html
index c04cf40bcd6faf998a169030d53c3efc9db4f665..5ab9fda3cbe6f484870717b1ce52126406835dc3 100644
--- a/chrome/browser/resources/settings/md_select_css.html
+++ b/chrome/browser/resources/settings/md_select_css.html
@@ -4,7 +4,7 @@
<template>
<style>
select {
- background-color: transparent;
+ -webkit-appearance: none;
border-bottom: 1px solid var(--paper-grey-300);
border-left: none;
border-right: none;
@@ -18,6 +18,16 @@
width: 200px;
}
+ :host-context([dir=ltr]) select {
+ background: url(images/arrow_down.svg) 97% 70% no-repeat;
+ background-size: 0.9em;
+ }
+
+ :host-context([dir=rtl]) select {
+ background: url(images/arrow_down.svg) 3% 70% no-repeat;
+ background-size: 0.9em;
Dan Beam 2016/10/04 22:12:33 can this be select { background: url(images/arr
dpapad 2016/10/04 22:26:34 Done.
+ }
+
.select-underline {
border-top: 2px solid var(--paper-indigo-500);
display: block;
« no previous file with comments | « chrome/browser/resources/settings/images/arrow_down.svg ('k') | chrome/browser/resources/settings/settings_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698