You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details:
When using the nunjucks macro to produce a date input component, changing the name of the year object inside items with break the styling on the year input field that makes it 4 characters in width rather than the default 2 characters. This happens because the value of item.name for each input field provided via the macro is recycled to also set the CSS class on the inputs container div. This is a fixed class name that, if changed, will result in a loss of styles for that class.
Reproduction:
Use the default macro code from the docs to create a date input component. Change item.name for the year field from "year" to "Year" or any other string.
Issue type: Bug
Component: Date Input
Location: Macro - template.njk
Version: 1.0.0
Prototype Kit Version: 7.0.0-beta.9
Details:
When using the nunjucks macro to produce a date input component, changing the name of the year object inside items with break the styling on the year input field that makes it 4 characters in width rather than the default 2 characters. This happens because the value of item.name for each input field provided via the macro is recycled to also set the CSS class on the inputs container div. This is a fixed class name that, if changed, will result in a loss of styles for that class.
Reproduction:
Use the default macro code from the docs to create a date input component. Change item.name for the year field from "year" to "Year" or any other string.
Code Sample:
The text was updated successfully, but these errors were encountered: