No Code Attached Yet
avatar brianteeman
brianteeman
1 Oct 2021

size
Valid for email, password, tel, url and text input types only. Specifies how much of the input is shown. Basically creates same result as setting CSS width property with a few specialities. The actual unit of the value depends on the input type. For password and text, it is a number of characters (or em units) with a default value of 20, and for others, it is pixels. CSS width takes precedence over size attribute.

As css takes precedence over any size attribute it has been suggested that we remove all size="xx" from the xml form definitions.

Personally I would keep it for all frontend inputs as there may not be any css in the site template for this but I would remove all the admin input sizes as they are redundant.

@chmst @bembelimen

avatar brianteeman brianteeman - open - 1 Oct 2021
avatar joomla-cms-bot joomla-cms-bot - change - 1 Oct 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Oct 2021
avatar chmst
chmst - comment - 3 Oct 2021

I also think that removing all size="xx" in backend only is a good solution. ``

avatar brianteeman brianteeman - change - 3 Oct 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-10-03 19:24:13
Closed_By brianteeman
avatar brianteeman brianteeman - close - 3 Oct 2021
avatar brianteeman
brianteeman - comment - 3 Oct 2021

PR created #35742

Add a Comment

Login with GitHub to post a comment