Skip to content

Commit

Permalink
focusStrokeWidth not applied on text-field and number-field
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Feb 7, 2022
1 parent 3337629 commit 64645f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
designUnit,
disabledOpacity,
focusStrokeOuter,
focusStrokeWidth,
neutralFillHover,
neutralFillInputHover,
neutralFillInputRest,
Expand Down Expand Up @@ -151,7 +152,7 @@ export const numberFieldStyles: FoundationElementTemplate<
:host(:focus-within:not([disabled])) .root {
border-color: ${focusStrokeOuter};
box-shadow: 0 0 0 1px ${focusStrokeOuter} inset;
box-shadow: 0 0 0 calc(${focusStrokeWidth} * 1px) ${focusStrokeOuter} inset;
}
:host(:hover:not([disabled])) .controls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { css, ElementStyles } from "@microsoft/fast-element";
import {
disabledCursor,
display,
ElementDefinitionContext,
focusVisible,
forcedColorsStylesheetBehavior,
FoundationElementTemplate,
Expand All @@ -18,6 +17,7 @@ import {
designUnit,
disabledOpacity,
focusStrokeOuter,
focusStrokeWidth,
neutralFillHover,
neutralFillInputHover,
neutralFillInputRest,
Expand Down Expand Up @@ -127,7 +127,7 @@ export const textFieldStyles: FoundationElementTemplate<
:host(:focus-within:not([disabled])) .root {
border-color: ${focusStrokeOuter};
box-shadow: 0 0 0 1px ${focusStrokeOuter} inset;
box-shadow: 0 0 0 calc(${focusStrokeWidth} * 1px) ${focusStrokeOuter} inset;
}
:host([appearance="filled"]) .root {
Expand Down

0 comments on commit 64645f6

Please sign in to comment.