|
121 | 121 | :host {
|
122 | 122 | display: block;
|
123 | 123 | padding: 8px 0;
|
| 124 | + overflow: hidden; |
124 | 125 |
|
125 | 126 | --paper-input-container-shared-input-style: {
|
126 | 127 | position: relative; /* to make a stacking context */
|
|
259 | 260 | @apply --paper-input-container-label-floating;
|
260 | 261 | }
|
261 | 262 |
|
| 263 | + :host(:dir(rtl)) .input-content.label-is-floating ::slotted(label), |
| 264 | + :host(:dir(rtl)) .input-content.label-is-floating ::slotted(.paper-input-label), |
262 | 265 | :host-context([dir="rtl"]) .input-content.label-is-floating ::slotted(label),
|
263 | 266 | :host-context([dir="rtl"]) .input-content.label-is-floating ::slotted(.paper-input-label) {
|
264 |
| - /* TODO(noms): Figure out why leaving the width at 133% before the animation |
265 |
| - * actually makes |
266 |
| - * it wider on the right side, not left side, as you would expect in RTL */ |
267 |
| - width: 100%; |
268 | 267 | -webkit-transform-origin: right top;
|
269 | 268 | transform-origin: right top;
|
270 | 269 | }
|
|
289 | 288 | .input-content ::slotted(iron-input) {
|
290 | 289 | @apply --paper-input-container-shared-input-style;
|
291 | 290 | }
|
292 |
| - |
| 291 | + |
293 | 292 | .input-content ::slotted(input),
|
294 | 293 | .input-content ::slotted(textarea),
|
295 | 294 | .input-content ::slotted(iron-autogrow-textarea),
|
|
302 | 301 | .input-content ::slotted(input)::-webkit-inner-spin-button {
|
303 | 302 | @apply --paper-input-container-input-webkit-spinner;
|
304 | 303 | }
|
305 |
| - |
| 304 | + |
306 | 305 | .input-content.focused ::slotted(input),
|
307 | 306 | .input-content.focused ::slotted(textarea),
|
308 | 307 | .input-content.focused ::slotted(iron-autogrow-textarea),
|
|
316 | 315 | .input-content.is-invalid ::slotted(.paper-input-input) {
|
317 | 316 | @apply --paper-input-container-input-invalid;
|
318 | 317 | }
|
319 |
| - |
| 318 | + |
320 | 319 | .prefix ::slotted(*) {
|
321 | 320 | display: inline-block;
|
322 | 321 | @apply --paper-font-subhead;
|
|
0 commit comments