Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix namespace admin userEditRoles component colors #1170

Open
pepermao opened this issue May 1, 2024 · 0 comments
Open

Fix namespace admin userEditRoles component colors #1170

pepermao opened this issue May 1, 2024 · 0 comments
Labels

Comments

@pepermao
Copy link
Collaborator

pepermao commented May 1, 2024

Background Information

Add color conditional to reflect the color based on the namespace environment

Where

{currentUserRoles &&
    Object.keys(currentUserRoles).map((key) => (
        <FormControl key={key} style={{ width: "100%" }}>
            <fieldset
                style={{
                    padding: 8,
                    border: `1px solid ${colors.bluePrimary}`, // TODO: CREATE COLOR CONDITIONAL
                }}
            >
            {//...code}
                        .map((role) => (
                            <FormControlLabel
                                disabled={!shouldEdit}
                                key={role}
                                value={role}
                                control={<Radio style={{ color: <CREATE_COLOR_CONDITIONAL> }} />}
                                label={t(`admin:role-${role}`)}
                            />
                        ))}
        </FormControl>
    ))}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant