From db781bfc35c45ce3ee842887cc3f1a3a3717dca8 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Sun, 20 Jun 2021 00:32:05 -0400 Subject: [PATCH] refactor(ui): css refinements for a more unified look (#1816) --- src/components/Common/Alert/index.tsx | 6 ++-- src/components/Common/List/index.tsx | 2 +- src/components/Common/Modal/index.tsx | 2 +- src/components/Common/SlideOver/index.tsx | 2 +- .../Layout/LanguagePicker/index.tsx | 6 ++-- src/components/Layout/UserDropdown/index.tsx | 6 ++-- src/components/Login/index.tsx | 4 +-- src/components/MovieDetails/index.tsx | 8 ++--- .../NotificationType/index.tsx | 8 +++-- src/components/PermissionOption/index.tsx | 8 +++-- src/components/PersonCard/index.tsx | 4 ++- src/components/RequestCard/index.tsx | 8 ++--- .../RequestList/RequestItem/index.tsx | 4 +-- .../Settings/SettingsAbout/Releases/index.tsx | 2 +- src/components/TitleCard/index.tsx | 8 +++-- src/components/TvDetails/index.tsx | 8 ++--- src/components/UserList/index.tsx | 8 ++--- src/i18n/locale/en.json | 8 ++--- src/styles/globals.css | 31 +++++++++++-------- 19 files changed, 73 insertions(+), 60 deletions(-) diff --git a/src/components/Common/Alert/index.tsx b/src/components/Common/Alert/index.tsx index 9f62131a..cddcf992 100644 --- a/src/components/Common/Alert/index.tsx +++ b/src/components/Common/Alert/index.tsx @@ -13,7 +13,7 @@ interface AlertProps { const Alert: React.FC = ({ title, children, type }) => { let design = { bgColor: 'bg-yellow-600', - titleColor: 'text-yellow-200', + titleColor: 'text-yellow-100', textColor: 'text-yellow-300', svg: , }; @@ -22,7 +22,7 @@ const Alert: React.FC = ({ title, children, type }) => { case 'info': design = { bgColor: 'bg-indigo-600', - titleColor: 'text-indigo-200', + titleColor: 'text-indigo-100', textColor: 'text-indigo-300', svg: , }; @@ -30,7 +30,7 @@ const Alert: React.FC = ({ title, children, type }) => { case 'error': design = { bgColor: 'bg-red-600', - titleColor: 'text-red-200', + titleColor: 'text-red-100', textColor: 'text-red-300', svg: , }; diff --git a/src/components/Common/List/index.tsx b/src/components/Common/List/index.tsx index 7a893708..6d447fcb 100644 --- a/src/components/Common/List/index.tsx +++ b/src/components/Common/List/index.tsx @@ -10,7 +10,7 @@ const ListItem: React.FC = ({ title, className, children }) => { return (
-
{title}
+
{title}
{children}
diff --git a/src/components/Common/Modal/index.tsx b/src/components/Common/Modal/index.tsx index 893b8114..97a9cd51 100644 --- a/src/components/Common/Modal/index.tsx +++ b/src/components/Common/Modal/index.tsx @@ -137,7 +137,7 @@ const Modal: React.FC = ({ > {title && ( {title} diff --git a/src/components/Common/SlideOver/index.tsx b/src/components/Common/SlideOver/index.tsx index f2aa09b2..736a4a6e 100644 --- a/src/components/Common/SlideOver/index.tsx +++ b/src/components/Common/SlideOver/index.tsx @@ -73,7 +73,7 @@ const SlideOver: React.FC = ({
-

+

{title}

diff --git a/src/components/Layout/LanguagePicker/index.tsx b/src/components/Layout/LanguagePicker/index.tsx index 83629b0a..16b3599e 100644 --- a/src/components/Layout/LanguagePicker/index.tsx +++ b/src/components/Layout/LanguagePicker/index.tsx @@ -10,7 +10,7 @@ import useLocale from '../../../hooks/useLocale'; import Transition from '../../Transition'; const messages = defineMessages({ - changelanguage: 'Change Language', + displaylanguage: 'Display Language', }); const LanguagePicker: React.FC = () => { @@ -50,9 +50,9 @@ const LanguagePicker: React.FC = () => {