diff --git a/src/app/components/home/NewPortfolioModal.tsx b/src/app/components/home/NewPortfolioModal.tsx index 9869ae3..0e560d3 100644 --- a/src/app/components/home/NewPortfolioModal.tsx +++ b/src/app/components/home/NewPortfolioModal.tsx @@ -17,15 +17,20 @@ interface IconProps { className?: string; } -const Icon: React.FC = ({ - name, - selected, - onSelect, - className, -}: IconProps) => ( -
onSelect(name)} style={selected ? { color: "red" } : {}}> - {name} -
+const selectedIconClasses = "bg-brandblue text-white w-1/5 rounded-md"; +const deSelectedIconClases = "bg-gray-200 w-1/5 rounded-md"; + +const Icon: React.FC = ({ name, selected, onSelect }: IconProps) => ( + <> +
onSelect(name)} + className={selected ? selectedIconClasses : deSelectedIconClases} + > +
Icon
+ {name} +
+ <> + ); const hiddenInputArrows = @@ -91,9 +96,10 @@ export default function NewPortfolioModal({
setPortfolioName(e.target.value)} - className="p-2 border border-gray-200 rounded-md focus:outline-none" + className="p-2 border border-gray-200 rounded-md focus:outline-none bg-gray-100" />
@@ -110,10 +116,12 @@ export default function NewPortfolioModal({ htmlFor="budget" className="text-sm font-semibold text-gray-600 mb-1" > - Budget (£): + Budget (£){" "} + optional{" "} + : -
- £ +
+ £ @@ -142,11 +150,6 @@ export default function NewPortfolioModal({ name={outcome} selected={selectedOutcome === outcome} onSelect={setSelectedOutcome} - className={ - selectedOutcome === outcome - ? "bg-red-500 text-white p-2 rounded" - : "p-2 rounded border border-gray-200" - } /> ))}
diff --git a/tailwind.config.js b/tailwind.config.js index 9ccc2d7..ae847ee 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -30,5 +30,10 @@ module.exports = { }, }, }, + variants: { + extend: { + visibility: ["group-hover"], + }, + }, plugins: [], };