User tests: Successful: Unsuccessful:
Adds validation to prevent a user from setting a negative font size
Pull Request for Issue #46779 .
Adds validation to the number fields and set a minimum value of 0 (this is the only way to ensure a positive value)
Go to the template style for cassiopeia extended and try to set the font sizes to negative values
negative (invalid) font sizes are set
On save an error message is displayed (NOTE: this string is untranslated at this time as its waiting a fix to be merged)
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End Templates (site) |
I have tested this item ✅ successfully on 7321f25
I have tested this fix on my local Joomla installation.
Testing Environment:
Testing Steps:
min="0" and step="0.1" attributesResult: ✅ The validation works perfectly. Negative font sizes are now blocked, preventing the layout breakage issue.
This fix should be merged.
I have tested this item ✅ successfully on 7321f25
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
bug
PR-6.0-dev
|
||
RTC
I have tested this item ✅ successfully on 7321f25
| Labels |
Added:
RTC
|
||
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-01-31 12:48:17 |
| Closed_By | ⇒ | softforge |
Thank you @brianteeman for your work and all the testers who check it
I have tested this item ✅ successfully on 7321f25
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46781.