fix: idp styling (#3797)

* fix: idp styling

* escape idp a color

* elevation on hover

* css gen

Co-authored-by: Max Peintner <max@caos.ch>
This commit is contained in:
Livio Spring 2022-06-10 15:17:33 +02:00 committed by GitHub
parent 7b0f0b81a3
commit 6bd5799770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 9 deletions

View File

@ -5,7 +5,7 @@
}
@mixin lgn-a-color() {
a:not(.lgn-stroked-button):not(.lgn-button):not(.lgn-raised-button) {
a:not(.lgn-stroked-button):not(.lgn-button):not(.lgn-raised-button):not(.lgn-idp) {
color: var(--zitadel-color-font);
&:hover,

View File

@ -8,10 +8,12 @@
.lgn-idp {
border-color: var(--zitadel-color-divider);
@include lgn-idp-elevation(1);
&:hover {
@include lgn-idp-elevation(1);
}
&:not([disabled]):active {
@include lgn-idp-elevation(8);
@include lgn-idp-elevation(2);
}
&.google {

View File

@ -2815,10 +2815,10 @@ footer .lgn-logo-watermark {
background-size: contain;
}
a:not(.lgn-stroked-button):not(.lgn-button):not(.lgn-raised-button) {
a:not(.lgn-stroked-button):not(.lgn-button):not(.lgn-raised-button):not(.lgn-idp) {
color: var(--zitadel-color-font);
}
a:not(.lgn-stroked-button):not(.lgn-button):not(.lgn-raised-button):hover, a:not(.lgn-stroked-button):not(.lgn-button):not(.lgn-raised-button):active {
a:not(.lgn-stroked-button):not(.lgn-button):not(.lgn-raised-button):not(.lgn-idp):hover, a:not(.lgn-stroked-button):not(.lgn-button):not(.lgn-raised-button):not(.lgn-idp):active {
color: var(--zitadel-color-primary-500);
}
@ -2911,10 +2911,12 @@ ul li i.lgn-valid {
.lgn-idp {
border-color: var(--zitadel-color-divider);
}
.lgn-idp:hover {
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}
.lgn-idp:not([disabled]):active {
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}
.lgn-idp.google {
color: var(--zitadel-color-google-text);

File diff suppressed because one or more lines are too long

View File

@ -132,8 +132,11 @@ func (i *IDPProvider) processIdpProvider(event *models.Event) (err error) {
if event.AggregateID != event.InstanceID {
providerType = iam_model.IDPProviderTypeOrg
}
esConfig.AppendEvent(providerType, event)
providers, err := i.view.IDPProvidersByIDPConfigID(esConfig.IDPConfigID, esConfig.InstanceID)
err = esConfig.AppendEvent(providerType, event)
if err != nil {
return err
}
providers, err := i.view.IDPProvidersByIDPConfigID(esConfig.IDPConfigID, event.InstanceID)
if err != nil {
return err
}