Skip to content

Migrate negative margin-y utils to Tailwind

What does this MR do and why?

Migrate negative margin-y utils to Tailwind

Migrates gl-my-n* utils to their -gl-my-* Tailwind equivalents.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

MR approval rules
Screenshot_2024-05-27_at_11.29.58_AM

CSS-in-Js diff

diff --git a/config/helpers/tailwind/css_in_js.js b/config/helpers/tailwind/css_in_js.js
index 397076c0d1cb..baa219547cf5 100644
--- a/config/helpers/tailwind/css_in_js.js
+++ b/config/helpers/tailwind/css_in_js.js
@@ -1,5 +1,5 @@
 /**
- * The following 544 definitions need to be migrated to Tailwind.
+ * The following 541 definitions need to be migrated to Tailwind.
  * Let's do this! 🚀
  */
 module.exports = {
@@ -496,11 +496,8 @@ module.exports = {
   '.mx-3\\!': { 'margin-left': '0.5rem !important', 'margin-right': '0.5rem !important' },
   '.my-n1': { 'margin-top': '-0.125rem', 'margin-bottom': '-0.125rem' },
   '.mx-n1': { 'margin-left': '-0.125rem', 'margin-right': '-0.125rem' },
-  '.my-n2': { 'margin-top': '-0.25rem', 'margin-bottom': '-0.25rem' },
-  '.my-n2\\!': { 'margin-top': '-0.25rem !important', 'margin-bottom': '-0.25rem !important' },
   '.mx-n2': { 'margin-left': '-0.25rem', 'margin-right': '-0.25rem' },
   '.my-n3': { 'margin-top': '-0.5rem', 'margin-bottom': '-0.5rem' },
-  '.my-n3\\!': { 'margin-top': '-0.5rem !important', 'margin-bottom': '-0.5rem !important' },
   '.mx-n3': { 'margin-left': '-0.5rem', 'margin-right': '-0.5rem' },
   '.mx-n4': { 'margin-left': '-0.75rem', 'margin-right': '-0.75rem' },
   '.mx-n5': { 'margin-left': '-1rem', 'margin-right': '-1rem' },

Related to #456630 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports