Applying styles to input fields #2649
Unanswered
jimthouston
asked this question in
Q&A
Replies: 1 comment
-
There are multiple ways to change the style of input elements:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to overlay input fields over a PDF tax form. I'm trying to make the digits align with boxes on the form. I tried:
This let me set the font-size but the letter-spacing had no effect. I played with chrome dev-tools and found a
letter-spacing: 0.00937em;
when I inspected the input field. This is hard-coded innicegui/static/quasar.css
. I was able to override this with:This lets me set the spacing on a field by field basis by calling
ui.input.default_style
with the desired style before adding the input field.I'm using something similar to make number fields right aligned:
I had hoped that I could do this on a field by field basis but it seems to be all or nothing.
I also hope to disable the increment/decrement arrows. I think this helps a bit but I don't understand why:
I'm also having problems with single character fields which scroll the letter out of the field to display the cursor. I'm working around this by allowing extra space for the cursor but this leads to overlapping input fields.
Any suggestion appreciated.
Jim
Beta Was this translation helpful? Give feedback.
All reactions