fix: input focus style in authentication pages.

This commit is contained in:
Ahmed Bouhuolia
2020-12-03 13:25:33 +02:00
parent b941866d88
commit e8f329e29e
4 changed files with 15 additions and 11 deletions

View File

@@ -228,6 +228,7 @@ function AccountsDataTable({
rowClassNames={rowClassNames} rowClassNames={rowClassNames}
expandColumnSpace={1} expandColumnSpace={1}
autoResetExpanded={false} autoResetExpanded={false}
autoResetSortBy={false}
selectionColumnWidth={50} selectionColumnWidth={50}
/> />
</div> </div>

View File

@@ -48,11 +48,21 @@ label.bp3-label{
box-shadow: 0 0 0 1px #116cd0; box-shadow: 0 0 0 1px #116cd0;
border-color: #116cd0; border-color: #116cd0;
} }
&.bp3-disabled, &.bp3-disabled,
&:disabled{ &:disabled{
background: #e9ecef; background: #e9ecef;
} }
.bp3-form-group.bp3-intent-danger &{
box-shadow: 0 0 0 transparent;
border-color: #db3737;
&:focus,
&.bp3-active{
box-shadow: 0 0 0 1px #db3737;
border-color: #db3737;
}
}
} }
.#{$ns}-form-group{ .#{$ns}-form-group{
@@ -66,15 +76,6 @@ label.bp3-label{
inset 0 0 0 1px rgba(16, 22, 26, 0.15), inset 0 0 0 1px rgba(16, 22, 26, 0.15),
inset 0 1px 1px rgba(16, 22, 26, 0.2); inset 0 1px 1px rgba(16, 22, 26, 0.2);
} }
.bp3-input{
border-color: rgb(219, 55, 55);
box-shadow: 0 0 0 0 transparent;
&:focus{
box-shadow: 0 0 0 0.2rem rgba(219, 55, 55, 0.25);
}
}
} }
.#{$ns}-label{ .#{$ns}-label{

View File

@@ -76,7 +76,6 @@
.bp3-input { .bp3-input {
min-height: 40px; min-height: 40px;
border: 1px solid #ced4da;
} }
.bp3-form-group { .bp3-form-group {
margin-bottom: 25px; margin-bottom: 25px;

View File

@@ -183,6 +183,9 @@ export default class AccountsService {
tenantId, accountDTO.parentAccountId tenantId, accountDTO.parentAccountId
); );
this.throwErrorIfParentHasDiffType(accountDTO, parentAccount); this.throwErrorIfParentHasDiffType(accountDTO, parentAccount);
// Inherit active status from parent account.
accountDTO.active = parentAccount.active;
} }
const account = await accountRepository.insert({ const account = await accountRepository.insert({
...accountDTO, ...accountDTO,