Skip to content

Commit

Permalink
Merge pull request #387 from dxc-technology/jcheng42-inputFocus
Browse files Browse the repository at this point in the history
[Patch] Fix input focus issues
  • Loading branch information
mawelCaballero authored Jun 21, 2021
2 parents fc439ef + 25686d5 commit d81dd5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class DxcTextInputComponent
return css`
&:focus {
outline: -webkit-focus-ring-color auto 1px;
outline-color: var(--inputText-focusColor);
outline-color: var(--inputText-focusOutlineColor);
}
cursor: pointer;
`;
Expand All @@ -336,7 +336,7 @@ export class DxcTextInputComponent
return css`
&:focus {
outline: -webkit-focus-ring-color auto 1px;
outline-color: var(--inputText-focusColor);
outline-color: var(--inputText-focusOutlineColor);
}
cursor: pointer;
`;
Expand Down Expand Up @@ -383,7 +383,7 @@ export class DxcTextInputComponent
.containerIcon {
&:focus {
outline: -webkit-focus-ring-color auto 1px !important;
outline-color: var(--inputText-focusColor) !important;
outline-color: var(--inputText-focusOutlineColor) !important;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion projects/dxc-ngx-cdk/src/lib/theme/componentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ export const componentTokens = {
"--inputText-selectedOptionBackgroundColor": globalTokens.lightGrey,
"--inputText-placeholderColor": globalTokens.lightGrey,
"--inputText-error": globalTokens.darkRed,
"--inputText-focusColor": globalTokens.blue,
"--inputText-focusColor": globalTokens.black,
"--inputText-focusOutlineColor": globalTokens.blue,
"--inputText-fontColor": globalTokens.black,
"--inputText-scrollBarThumbColor": globalTokens.darkGrey,
"--inputText-scrollBarTrackColor": globalTokens.lightGrey,
Expand Down

0 comments on commit d81dd5d

Please sign in to comment.