? Pending

User tests: Successful: Unsuccessful:

avatar impressionestudio
impressionestudio
16 Oct 2021

Pull Request for Issue #35342.

General description of the changes:

Notes:

  • Personally, I would not suggest keeping the old and not useful classes, but some guys want backward compatibility.
  • I don't find BEM so useful, but since it is already used, it is better to comply.

Detailed explanation of the changes:

  1. On row 36, the class "item-page" is not needed but remained for compatibility reasons, separated by the character | to be indicated as deprecated. We can use the class "com-content-article" which is more specific.

  2. On row 36, the page class suffix should not be merged to any existing class name because if the suffix class is used, it cancels the usage of the existing class. If we have ".com-content-article_suffix" then we lose ".com-content-article". With a space before the suffix class we can easily use this ".com-content-article.suffix" keeping the usage of ".com-content-article".

  3. On row 39, the class "page-header" is replaced by "article__title--menu" since it represents the title field of a menu item.
    The old class name remained for compatibility reasons, separated by the character | to be indicated as deprecated.

  4. On row 53, the class "page-header" is replaced by "article__title" since it represents the title field of an article.

  5. On row 101, the class "com-content-article__body" is changed to "article__content" since it represents the content tab of an article.
    The old class name remained for compatibility reasons, separated by the character | to be indicated as deprecated.
    Please, do not keep all this "com-content-article" to every class name. It is too big, we have it on the parent element and we don't use it on other sibling elements. So why here?

avatar impressionestudio impressionestudio - open - 16 Oct 2021
avatar impressionestudio impressionestudio - change - 16 Oct 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Oct 2021
Category Front End com_content
avatar impressionestudio impressionestudio - change - 16 Oct 2021
Title
Changes to class names of default.php
Article View: Changes to class names
avatar impressionestudio impressionestudio - edited - 16 Oct 2021
avatar impressionestudio impressionestudio - change - 16 Oct 2021
The description was changed
avatar impressionestudio impressionestudio - edited - 16 Oct 2021
avatar impressionestudio impressionestudio - change - 16 Oct 2021
The description was changed
avatar impressionestudio impressionestudio - edited - 16 Oct 2021
avatar impressionestudio
impressionestudio - comment - 16 Oct 2021

@brianteeman Could you tell me what you don't like in case I can fix it?

avatar brianteeman
brianteeman - comment - 16 Oct 2021

I dont like changing class names at this time.
I dont like the use of the |
I dont agree with most of your explanations for the name change (and if accepted would need the exact same change being made in all core components)
I dont see the benefits or why this should be done in core for everyone instead of a template override - thats what they exist for

avatar impressionestudio impressionestudio - change - 16 Oct 2021
The description was changed
avatar impressionestudio impressionestudio - edited - 16 Oct 2021
avatar impressionestudio impressionestudio - change - 17 Oct 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2021
Category Front End com_content Front End com_content Layout
avatar impressionestudio impressionestudio - change - 17 Oct 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-10-17 09:39:59
Closed_By impressionestudio
avatar impressionestudio impressionestudio - close - 17 Oct 2021
avatar impressionestudio
impressionestudio - comment - 17 Oct 2021

I dont like changing class names at this time.

Ok, no problem, this is a personal opinion.

I dont like the use of the |

It is an unusual idea, but I find it useful. Of course, it is not necessary to follow it, or we can use it now and remove it anytime later.

I dont agree with most of your explanations for the name change (and if accepted would need the exact same change being made in all core components)

That is also personal opinion. I hope others will agree. Let's start with the content component which is the most important and later we can change all the components.

I dont see the benefits or why this should be done in core for everyone instead of a template override - thats what they exist for

I don't want to create an override for everyday actions.
Have you seen the classes "article-info text-muted" in the info_block of an article? These classes also appear on installed templates like Gantry. Why the "text-muted" class is there? I don't want it when I use another template than Cassiopeia. It is a matter of each template to give different style by using the main class and not additional specific classes (Bootstrap).

avatar brianteeman
brianteeman - comment - 17 Oct 2021

Everything you say is an explanation of why we have template overrides.

Add a Comment

Login with GitHub to post a comment