Commit cca1a01d authored by dschuyler's avatar dschuyler Committed by Commit bot

[MD settings] checkbox ripple clipping with iron list

This CL reduces the effect of iron-list clipping off the ink ripple
effect on paper-checkbox (e.g. in the language settings). The ripple can
still be clipped on the top and bottom. This CL fixes the more noticeable
clipping on the left edge.

BUG=608647
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2098123002
Cr-Commit-Position: refs/heads/master@{#402639}
parent 23e9098e
...@@ -12,14 +12,20 @@ ...@@ -12,14 +12,20 @@
<template> <template>
<style include="settings-shared"> <style include="settings-shared">
.list-frame { .list-frame {
align-items: initial;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: initial;
} }
iron-list { iron-list {
height: 300px; height: 300px;
} }
.ripple-padding {
/* Create a little extra space for checkbox ink ripple to flow into. */
left: -20px;
padding-left: 20px;
}
</style> </style>
<settings-languages languages="{{languages}}"></settings-languages> <settings-languages languages="{{languages}}"></settings-languages>
<div class="settings-box first block"> <div class="settings-box first block">
...@@ -38,7 +44,7 @@ ...@@ -38,7 +44,7 @@
</div> </div>
<h2>$i18n{allLanguages}</h2> <h2>$i18n{allLanguages}</h2>
<div class="list-frame vertical-list"> <div class="list-frame vertical-list">
<iron-list items="{{languages.supported}}"> <iron-list class="ripple-padding" items="{{languages.supported}}">
<template> <template>
<div class="list-item"> <div class="list-item">
<paper-checkbox <paper-checkbox
......
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