From 27b17a13c2ad87935af08e22d29ba1fa9b28ee96 Mon Sep 17 00:00:00 2001 From: Rodrigo Nader Date: Thu, 29 Jun 2023 18:39:00 -0300 Subject: [PATCH] Refactor styles and class names in multiple components, update color variables, and adjust button and control styles. - Simplify class names in the SingleAlert component and update color variables. - Update class names and color variables in the Dialog component. - Update color variables in the constants file. - Update color variables and class names in the index.css file. - Update class names and color variables in the PageComponent file. - Add a color variable for shared blur styles. - Update Tailwind CSS configuration to include new color variables. Note: These changes improve code readability and maintain color consistency throughout the application. --- .../components/singleAlertComponent/index.tsx | 22 ++++++------ src/frontend/src/components/ui/dialog.tsx | 2 +- src/frontend/src/constants.tsx | 2 +- src/frontend/src/index.css | 36 +++++++++++++------ .../components/PageComponent/index.tsx | 3 +- src/frontend/tailwind.config.js | 3 ++ 6 files changed, 43 insertions(+), 25 deletions(-) diff --git a/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx b/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx index 78e28f6d6..fa8bbd6fb 100644 --- a/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx +++ b/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx @@ -62,34 +62,34 @@ export default function SingleAlert({ removeAlert(dropItem.id); }, 500); }} - className="inline-flex rounded-md bg-red-50 p-1.5 text-status-red" + className="inline-flex rounded-md p-1.5 text-status-red" > Dismiss -