Skip to content

Commit

Permalink
Update theme to handle new version of Keycloak (#49)
Browse files Browse the repository at this point in the history
The eye in the password field that displays the password in plaintext when clicked
  • Loading branch information
mircowidmer committed Apr 2, 2024
1 parent 69088e2 commit 6bac470
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions theme/login/resources/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,30 @@
visibility: hidden;
}

.display-flex {
display: flex;
}

.pf-c-button {
background-color: white;
border-radius: 0 3px 3px 0;
}

.pf-c-button:focus {
outline: none;
}

.pf-m-control {
width: 5rem;
border: #bdc0c7 1px solid;
border-left: none;
background-color: white;
}

#password {
border-radius: 3px 0 0 3px;
}

.vshn-logo {
position: relative;
width: 200px;
Expand Down
6 changes: 6 additions & 0 deletions theme/login/theme.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ kcFormGroupClass=form-group
kcFormGroupErrorClass=is-invalid
kcLabelClass=control-label
kcLabelWrapperClass=col-12
kcInputGroup=display-flex
kcInputClass=form-control
kcInputErrorMessageClass=parsley-errors-list filled
kcInputWrapperClass=col-12
Expand Down Expand Up @@ -86,3 +87,8 @@ kcLoginOTPListItemHeaderClass=kcLoginOTPListItemHeaderClass
kcLoginOTPListItemIconBodyClass=kcLoginOTPListItemIconBodyClass
kcLoginOTPListItemIconClass=mdi mdi-code-smartphone
kcLoginOTPListItemTitleClass=kcLoginOTPListItemTitleClass

## Password visibility
kcFormPasswordVisibilityButtonClass=pf-c-button pf-m-control
kcFormPasswordVisibilityIconShow=mdi mdi-eye
kcFormPasswordVisibilityIconHide=mdi mdi-eye-off

0 comments on commit 6bac470

Please sign in to comment.