This is a migrated thread and some comments may be shown as answers.

Email or Password input textbox type breaks layout

2 Answers 637 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 23 May 2019, 08:18 PM

I was using text type in input elements that were styled k-textbox class, but I wanted to use email and password type, but for some reason this breaks the form layout. See this example based on the grid external form. Click Add to bring up the add form.

https://stackblitz.com/edit/kendogrid-externalform-boz

2 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 23 May 2019, 08:25 PM
0
Dimiter Topalov
Telerik team
answered on 27 May 2019, 09:14 AM
Hi James,

The styling of the external form targets the inputs with type="text" and makes them 100% wide for the purposes of the demo only:

@Component({
    selector: 'kendo-grid-edit-form',
    styles: [
      'input[type=text] { width: 100%; }'
    ],

You can easily adjust the styling to target other types of inputs too, or remove the attribute selector altogether, and add the .k-textbox class to the additional inputs of type email and password, e.g.:

https://stackblitz.com/edit/kendogrid-externalform-boz-71qerl?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TextBox
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Dimiter Topalov
Telerik team
Share this question
or