Closed freshp86 closed 6 years ago
I agree, the --paper-input-container-input
mixin should be applied to .input-content ::slotted(iron-input)
as well.
Yeah, I think this is also needed for other mixins, like https://github.com/PolymerElements/paper-input/blob/master/paper-input-container.html#L309
When using the latest
iron-input
(which wraps a native<input>
), font-size inherit no longer works inside thepaper-input-container-input
mixin, because it instead inherits from the parentiron-input
. Minimal example below:Before versions: paper-input: 2.1.0 iron-input: 1.0.10 Observing
<input is="iron-input">
inheriting 10px font from body.After versions: paper-input: 2.2.0 iron-input: 2.1.2 Observing the inner
<input>
inheriting 16px from it's parent<iron-input>
.Proposed fix?
See line https://github.com/PolymerElements/paper-input/blob/master/paper-input-container.html#L293 and compare with lines 300-301. Shouldn't both mixins also be applied on the iron-input, such that iron-input does not end up with a 16px font size?
cc @notwaldorf. mostly as FYI cc @kevinpschaaf, @sorvell