Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Input size attribute isn't supported #1490

Closed
ilanbiala opened this issue Feb 12, 2015 · 4 comments
Closed

Input size attribute isn't supported #1490

ilanbiala opened this issue Feb 12, 2015 · 4 comments

Comments

@ilanbiala
Copy link
Contributor

It seems that the input size attribute isn't supported. Ordinarily I would just work with the flex attribute, but it's easier to size the input based on the number of characters rather than the percentage width.

@marcysutton
Copy link
Contributor

Can't you put native attributes on the <input> inside of <md-input-group>? Is CSS getting in the way? A Codepen or Plunker would help us take a closer look at this issue. Thanks.

@ilanbiala
Copy link
Contributor Author

@marcysutton take a look at this Pen: http://codepen.io/ilanbiala/pen/dPdXpd. I'm using it inside an md-list, but I would think the styles should still apply especially when it's a browser feature and not an ngMaterial one.

@ilanbiala
Copy link
Contributor Author

@marcysutton I updated the Pen with another input inside only the form and still it isn't size 4. Take a look at the last 2 inputs to see what I mean.

@marcysutton
Copy link
Contributor

I see what you're talking about, but widths are handled by the flex layout system. There is a fundamental conflict between supporting widths as native attributes and providing a layout system in CSS. Bootstrap inputs don't respond to this attribute either. Recommending you use CSS and validate input lengths with JS instead.

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

2 participants