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
I propose renaming .items-center to .align-center for the following reasons:
Consistency: The .justify-center class uses the verb "justify" to describe its action (justify-content). Using "align" in .align-center would follow the same logic, making the class names more intuitive.
Clarity: The term "items" in .items-center does not clearly convey the action of aligning items. "Align" is more descriptive and directly references align-items.
Proposed Change
Change the CSS class from:
.items-center => { align-items: center; }
To:
.align-center => { align-items: center; }
This change will improve the readability and maintainability of the code by making the class names more self-explanatory.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Suggestion :
I propose renaming .items-center to .align-center for the following reasons:
Consistency: The .justify-center class uses the verb "justify" to describe its action (justify-content). Using "align" in .align-center would follow the same logic, making the class names more intuitive.
Clarity: The term "items" in .items-center does not clearly convey the action of aligning items. "Align" is more descriptive and directly references align-items.
Proposed Change
Change the CSS class from:
.items-center => { align-items: center; }
To:
.align-center => { align-items: center; }
This change will improve the readability and maintainability of the code by making the class names more self-explanatory.
Beta Was this translation helpful? Give feedback.
All reactions