Show hand cursor when hovering over User Fed empty state cards (#569)

* add hand cursor for empty state cards

* add default ldap name value

* move card css up and add to provider cards
This commit is contained in:
mfrances17 2021-05-06 03:23:51 -04:00 committed by GitHub
parent d3615b1780
commit 84d621f70a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

View file

@ -19,10 +19,14 @@ label.pf-c-form__label {
}
.pf-c-select__toggle:before {
border-top: var(--pf-c-select__toggle--before--BorderTopWidth) solid var(--pf-c-select__toggle--before--BorderTopColor);
border-right: var(--pf-c-select__toggle--before--BorderRightWidth) solid var(--pf-c-select__toggle--before--BorderRightColor);
border-bottom: var(--pf-c-select__toggle--before--BorderBottomWidth) solid var(--pf-c-select__toggle--before--BorderBottomColor);
border-left: var(--pf-c-select__toggle--before--BorderLeftWidth) solid var(--pf-c-select__toggle--before--BorderLeftColor);
border-top: var(--pf-c-select__toggle--before--BorderTopWidth) solid
var(--pf-c-select__toggle--before--BorderTopColor);
border-right: var(--pf-c-select__toggle--before--BorderRightWidth) solid
var(--pf-c-select__toggle--before--BorderRightColor);
border-bottom: var(--pf-c-select__toggle--before--BorderBottomWidth) solid
var(--pf-c-select__toggle--before--BorderBottomColor);
border-left: var(--pf-c-select__toggle--before--BorderLeftWidth) solid
var(--pf-c-select__toggle--before--BorderLeftColor);
}
.keycloak__form_actions {
@ -36,3 +40,7 @@ label.pf-c-form__label {
border-top: 1px solid var(--pf-global--BorderColor--100);
margin-left: calc(-1 * var(--pf-global--spacer--lg));
}
.keycloak-empty-state-card:hover {
cursor: pointer;
}

View file

@ -171,6 +171,7 @@ export const IdentityProvidersSection = () => {
{_.sortBy(identityProviders[group], "name").map(
(provider) => (
<Card
className="keycloak-empty-state-card"
key={provider.id}
isHoverable
data-testid={`${provider.id}-card`}

View file

@ -177,6 +177,7 @@ export const UserFederationSection = () => {
<hr className="pf-u-mb-lg" />
<Gallery hasGutter>
<Card
className="keycloak-empty-state-card"
isHoverable
onClick={() => history.push(`${url}/kerberos/new`)}
data-testid="kerberos-card"
@ -191,6 +192,7 @@ export const UserFederationSection = () => {
</CardTitle>
</Card>
<Card
className="keycloak-empty-state-card"
isHoverable
onClick={() => history.push(`${url}/ldap/new`)}
data-testid="ldap-card"

View file

@ -83,6 +83,7 @@ export const LdapSettingsGeneral = ({
type="text"
id="kc-console-display-name"
name="name"
defaultValue="ldap"
ref={form.register({
required: {
value: true,