Skip to content

Add more utils and components to Tailwind configuration

Paul Gascou-Vaillancourt requested to merge more-tailwind-config into master

What does this MR do and why?

Add more utils and components to Tailwind configuration

This updates the Tailwind config to support more utilities and components. The equivalents JSON file has been updated accordingly.

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.

CSS-in-Js diff

diff --git a/config/helpers/tailwind/css_in_js.js b/config/helpers/tailwind/css_in_js.js
index b8da28d22b25..493fedff33c8 100644
--- a/config/helpers/tailwind/css_in_js.js
+++ b/config/helpers/tailwind/css_in_js.js
@@ -1,5 +1,5 @@
 /**
- * The following 455 definitions need to be migrated to Tailwind.
+ * The following 451 definitions need to be migrated to Tailwind.
  * Let's do this! 🚀
  */
 module.exports = {
@@ -61,7 +61,6 @@ module.exports = {
   '.border-solid\\!': { 'border-style': 'solid !important' },
   '.hover-border-b-solid': { '&:hover': { 'border-bottom-style': 'solid' } },
   '.border-b-solid\\!': { 'border-bottom-style': 'solid !important' },
-  '.border-b-initial': { 'border-bottom-style': 'initial' },
   '.border-t-transparent\\!': { 'border-top-color': 'transparent !important' },
   '.hover-border-gray-100': { '&:hover': { 'border-color': 'var(--gray-100, #dcdcde)' } },
   '.border-gray-100\\!': { 'border-color': 'var(--gray-100, #dcdcde) !important' },
@@ -142,7 +141,6 @@ module.exports = {
     'box-shadow': 'inset 0 0 0 1px var(--red-500, #dd2b0e) !important',
   },
   '.shadow-none\\!': { 'box-shadow': 'none !important' },
-  '.clearfix': { '&::after': { display: 'block', clear: 'both', content: '""' } },
   '.clearfix\\!': {
     '&::after': { display: 'block !important', clear: 'both !important', content: '"" !important' },
   },
@@ -258,7 +256,6 @@ module.exports = {
   },
   '.flex-grow-0\\!': { 'flex-grow': '0 !important' },
   '.flex-grow-1': { 'flex-grow': '1' },
-  '.flex-grow-2': { 'flex-grow': '2' },
   '.md-flex-grow-0': { '@media (min-width: 768px)': { 'flex-grow': '0' } },
   '.flex-basis-0': { 'flex-basis': '0' },
   '.flex-basis-quarter': { 'flex-basis': '25%' },
@@ -509,14 +506,6 @@ module.exports = {
   '.white-space-pre-wrap\\!': { 'white-space': 'pre-wrap !important' },
   '.white-space-pre-line': { 'white-space': 'pre-line' },
   '.word-break-word': { 'word-break': 'break-word' },
-  '.str-truncated': {
-    display: 'inline-block',
-    overflow: 'hidden',
-    'text-overflow': 'ellipsis',
-    'vertical-align': 'top',
-    'white-space': 'nowrap',
-    'max-width': '82%',
-  },
   '.text-truncate': { overflow: 'hidden', 'text-overflow': 'ellipsis', 'white-space': 'nowrap' },
   '.translate-y-n100': { transform: 'translateY(-100%)' },
   '.transition-duration-slow': { 'transition-duration': '0.4s' },
Edited by Paul Gascou-Vaillancourt

Merge request reports