Nowadays joomla uses bootstrap 5. The used class="label" is a call from a previous bootstrap version and no longer exists.
See module: Language Switcher
For example:
<span class="badge bg-light text-dark" title="<?php echo $language->title_native; ?>"><?php echo strtoupper($language->sef); ?></span>
or
<span class="badge bg-secondary" title="<?php echo $language->title_native; ?>"><?php echo strtoupper($language->sef); ?></span>
<span class="label" title="<?php echo $language->title_native; ?>"><?php echo strtoupper($language->sef); ?></span>
J4: See file
This is probably an old class from bootstrap 3.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
and how you do know that someone is not using that class in their template?
and how you do know that someone is not using that class in their template?
The question is whether we should allow this obsolete class="label" to continue. I would suggest remove and replace this class.
In addition, the badge class is used extensively in J4.
Bootstrap 3 (obsolete): https://getbootstrap.com/docs/3.3/components/#labels
Bootstrap 5 (current): https://getbootstrap.com/docs/5.0/components/badge/
@sandewt I would like to work on this issue.
@ayushanand16 Of course, that's up to you
I encountered the class="label" in the libraries of @regularlabs.
and that is the perfect example of why it should not be removed.
I do remember someone went thourgh and changed label to badge BEFORE j4 was released but the must have missed this one.
I don't mind the use of class="label"
being removed from Joomla.
There was indeed one occurrence in my code that was mimicking the HTML of the language label in Joomla.
I have already changed it in my code (which will be pushed into next versions).
Currently the Joomla admin template gives no CSS styling to the label
class.
So this could only be a minor 'issue' for custom/3rd-party admin templates that do include specific styling for that.
Buy changing class="label"
to class="badge bg-secondary"
would in my view not cause any issues. As other admin templates would also have CSS for that (as it is used a lot in other places in Joomla).
Another argument, to change the class name:
Line 90 is completely identical to line 105, with the only difference being the classes. Perhaps something went wrong here in the past?
I am fine with this change.
i would like to work on this issue
b/ c break
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-01-12 12:03:19 |
Closed_By | ⇒ | sandewt |
@sandewt I would like to work on this issue.