Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Editable input for paper-slider is too short #150

Open
lsuder opened this issue Sep 14, 2016 · 3 comments
Open

Editable input for paper-slider is too short #150

lsuder opened this issue Sep 14, 2016 · 3 comments

Comments

@lsuder
Copy link

lsuder commented Sep 14, 2016

On Polymer demo page (https://elements.polymer-project.org/elements/paper-slider?view=demo:demo/index.html&active=paper-slider) if you set the value to 255 the last number is partially covered by the up-down buttons.

The problem is even worse when the max value is above 1000. In such a case the last number is not visible at all.

Tested on Chrome 53.0.2785.101.

@davidptm56
Copy link

davidptm56 commented Oct 21, 2016

You can change input's style with --paper-slider-input{} mixin.

i.e.:

<style>
    ...
    paper-slider { --paper-slider-input: {width: 100px} }
    ...
</style>

@kriscooke
Copy link

As for the up-down arrows, I found them to be quite useless, so as of v1.1.21 of PolymerElements/paper-input you can hide the internal input's up-down arrows using the --paper-input-container-input-webkit-spinner mixin:

paper-slider {
  --paper-input-container-input-webkit-spinner: {
    -webkit-appearance: none;
    margin: 0;
  };
}

@nextjstuts
Copy link

/* paper-input */ .slider-input { width: 50px;
just change the width to 70px
It's been a year and the developer has not fixed this in the demo for this component so it's never going to be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants