File tree Expand file tree Collapse file tree 3 files changed +50
-29
lines changed
components/project/manageBenefits/configureBenefit Expand file tree Collapse file tree 3 files changed +50
-29
lines changed Original file line number Diff line number Diff line change @@ -70,26 +70,37 @@ const EligibilityCheckListView = ({
7070 return (
7171 < >
7272 < div class = "p-4" >
73- < div class = "flex items-center mb-2" >
73+ < div class = "flex justify-between items-center mb-2" >
7474 < div class = "text-2xl font-bold" > { activeCheckConfig ( ) . title } </ div >
75- < div class = "ml-auto flex gap-2" >
76- < For
77- each = {
78- [ PublicCheckConfig , UserDefinedCheckConfig ] as CheckModeConfig [ ]
75+ < div class = "grid w-full grid-cols-2 items-center justify-center rounded-md bg-muted bg-gray-100 p-1 text-gray-500 mb-2 w-xs" >
76+ < button
77+ onClick = { ( ) =>
78+ mode ( ) === "public"
79+ ? setMode ( "user-defined" )
80+ : setMode ( "public" )
7981 }
82+ class = { `inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 rounded ${
83+ mode ( ) === "public"
84+ ? "bg-white text-gray-950 shadow-sm"
85+ : "hover:bg-gray-200"
86+ } `}
8087 >
81- { ( modeOption ) => (
82- < div
83- class = { `btn-default ${
84- mode ( ) === modeOption . mode ? "btn-blue" : "btn-gray"
85- } `}
86- onClick = { ( ) => setMode ( modeOption . mode ) }
87- title = { modeOption . buttonTitle }
88- >
89- { modeOption . buttonTitle }
90- </ div >
91- ) }
92- </ For >
88+ Public Checks
89+ </ button >
90+ < button
91+ onClick = { ( ) =>
92+ mode ( ) === "public"
93+ ? setMode ( "user-defined" )
94+ : setMode ( "public" )
95+ }
96+ class = { `inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 rounded ${
97+ mode ( ) === "user-defined"
98+ ? "bg-white text-gray-950 shadow-sm"
99+ : "hover:bg-gray-200"
100+ } `}
101+ >
102+ Custom Checks
103+ </ button >
93104 </ div >
94105 </ div >
95106 < div > { activeCheckConfig ( ) . description } </ div >
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ const ConfigureCheckModal = ({
5656 < div class = "pl-2" >
5757 < div class = "mb-2 font-bold" >
5858 { titleCase ( parameter . key ) } { " " }
59- { parameter . required && < span class = "text-red-600" > *</ span > }
59+ { parameter . required && (
60+ < span class = "text-red-600" > *</ span >
61+ ) }
6062 </ div >
6163 < div class = "pl-2" >
6264 < ParameterInput
@@ -73,13 +75,16 @@ const ConfigureCheckModal = ({
7375 </ div >
7476 ) }
7577
76- < div class = "flex justify-end space-x-2" >
77- < div class = "btn-default btn-gray" onClick = { closeModal } >
78+ < div class = "flex justify-end gap-2 space-x-2" >
79+ < button class = "btn-default btn-gray !text-sm " onClick = { closeModal } >
7880 Cancel
79- </ div >
80- < div class = "btn-default btn-blue" onClick = { confirmAndClose } >
81+ </ button >
82+ < button
83+ class = "btn-default btn-blue !text-sm"
84+ onClick = { confirmAndClose }
85+ >
8186 Confirm
82- </ div >
87+ </ button >
8388 </ div >
8489 </ div >
8590 </ div >
@@ -136,7 +141,9 @@ const ParameterInput = ({
136141 return (
137142 < ParameterMultiStringInput
138143 onParameterChange = { onParameterChange }
139- currentValue = { ( ) => tempCheck ( ) . parameters [ parameterKey ( ) ] as string [ ] | undefined }
144+ currentValue = { ( ) =>
145+ tempCheck ( ) . parameters [ parameterKey ( ) ] as string [ ] | undefined
146+ }
140147 />
141148 ) ;
142149 }
Original file line number Diff line number Diff line change 33 strategy : "class" ; /* only generate form-* classes */
44}
55
6+ body {
7+ @apply
8+ text-gray-800
9+ }
610@layer components {
711 .btn-default {
812 @apply
9- inline-block px-6 py-1
10- border-gray-300 border-2
11- cursor-pointer select-none rounded-md
13+ inline-block px-5 py-1
14+ cursor-pointer select-none !rounded-md text-sm font-semibold
1215 }
1316 .btn-default .btn-gray {
14- @apply bg-white hover:bg-gray-200;
17+ @apply border-gray-300 border-2 bg-white hover:bg-gray-200 text-gray-800 ;
1518 /* @apply bg-white hover:bg-gray-200 hover:scale-500 transition-all duration-1000; */
1619 }
1720 .btn-default .btn-red {
18- @apply bg- red-800 hover:bg-red-900 text-white ;
21+ @apply border-gray-300 border-2 border- red-400 text-red-500 hover:bg-red-200 hover: text-red-700 ;
1922 }
2023 .btn-default .btn-yellow {
2124 @apply bg-yellow-700 hover:bg-yellow-800 text-white;
You can’t perform that action at this time.
0 commit comments