Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fixed inactive cancel button

Vladyslav Matsiiakofc4189ba0fb8
diff --git a/frontend/src/components/v2/Select/Select.tsx b/frontend/src/components/v2/Select/Select.tsx
index 015b16f98c..091db1435e 100644
--- a/frontend/src/components/v2/Select/Select.tsx
+++ b/frontend/src/components/v2/Select/Select.tsx
@@ -50,8 +50,8 @@ export const Select = forwardRef<HTMLButtonElement, SelectProps>(
<SelectPrimitive.Trigger
ref={ref}
className={twMerge(
- `inline-flex items-center justify-between rounded-md
- bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-none focus:bg-mineshaft-700/80 data-[placeholder]:text-mineshaft-200`,
+ `inline-flex items-center justify-between rounded-md border border-mineshaft-600
+ bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-none focus:bg-mineshaft-700/80 data-[placeholder]:text-mineshaft-400`,
className,
isDisabled && "cursor-not-allowed opacity-50"
)}
diff --git a/frontend/src/views/Project/MembersPage/components/GroupsTab/components/GroupsSection/GroupModal.tsx b/frontend/src/views/Project/MembersPage/components/GroupsTab/components/GroupsSection/GroupModal.tsx
index f0ed1c5b76..3fe9bc8e75 100644
--- a/frontend/src/views/Project/MembersPage/components/GroupsTab/components/GroupsSection/GroupModal.tsx
+++ b/frontend/src/views/Project/MembersPage/components/GroupsTab/components/GroupsSection/GroupModal.tsx
@@ -104,10 +104,11 @@ export const GroupModal = ({ popUp, handlePopUpToggle }: Props) => {
defaultValue={field.value}
{...field}
onValueChange={(e) => onChange(e)}
- className="w-full"
+ className="w-full border border-mineshaft-600"
+ placeholder="Select group..."
>
{filteredGroupMembershipOrgs.map(({ name, slug, id }) => (
- <SelectItem value={slug} key={`org-group-${id}`}>
+ <SelectItem value={slug} key={`org-group-${id}`} >
{name}
</SelectItem>
))}
@@ -131,6 +132,7 @@ export const GroupModal = ({ popUp, handlePopUpToggle }: Props) => {
{...field}
onValueChange={(e) => onChange(e)}
className="w-full"
+ placeholder="Select role..."
>
{(roles || []).map(({ name, slug }) => (
<SelectItem value={slug} key={`st-role-${slug}`}>
@@ -141,7 +143,7 @@ export const GroupModal = ({ popUp, handlePopUpToggle }: Props) => {
</FormControl>
)}
/>
- <div className="flex items-center">
+ <div className="flex items-center mt-6">
<Button
className="mr-4"
size="sm"
@@ -151,9 +153,13 @@ export const GroupModal = ({ popUp, handlePopUpToggle }: Props) => {
>
{popUp?.group?.data ? "Update" : "Create"}
</Button>
- <Button colorSchema="secondary" variant="plain">
- Cancel
- </Button>
+ <Button
+ colorSchema="secondary"
+ variant="plain"
+ onClick={() => handlePopUpToggle("group", false)}
+ >
+ Cancel
+ </Button>
</div>
</form>
) : (