@@ -64,7 +64,6 @@ const NO_SELECTION = -1;
6464const SPIN_UP = - 2 ;
6565const SPIN_DOWN = - 3 ;
6666
67- const addFocusOutline = isEdge ( ) || isIOS ( ) ;
6867const alternateClipboard = navigator . clipboard == null || isAndroid ( ) || isChromeOS ( ) || isIOS ( ) || isSamsung ( ) ;
6968const checkForRepeatedKeyTimestamps = isIOS ( ) ;
7069const disableContentEditable = isEdge ( ) ;
@@ -147,12 +146,10 @@ class DynamicColor {
147146
148147export const BACKGROUND_ANIMATIONS = trigger ( 'displayState' , [
149148 state ( 'error' , style ( { backgroundColor : new DynamicColor ( ERROR_BACKGROUND , '#F67' ) as unknown as string } ) ) ,
150- state ( 'normal' , style ( { backgroundColor : new DynamicColor ( NORMAL_BACKGROUND , 'white' ) as unknown as string } ) ) ,
151- state ( 'refresh' , style ( { backgroundColor : 'gray ' } ) ) ,
149+ state ( 'normal' , style ( { backgroundColor : 'transparent' } ) ) ,
150+ state ( 'refresh' , style ( { backgroundColor : 'rgba(0, 0, 0, 0.01) ' } ) ) ,
152151 state ( 'confirm' , style ( { backgroundColor : new DynamicColor ( CONFIRM_BACKGROUND , '#6C6' ) as unknown as string } ) ) ,
153152 state ( 'warning' , style ( { backgroundColor : new DynamicColor ( WARNING_BACKGROUND , '#FC6' ) as unknown as string } ) ) ,
154- state ( 'view-only' , style ( { backgroundColor : new DynamicColor ( VIEW_ONLY_BACKGROUND , 'black' ) as unknown as string } ) ) ,
155- state ( 'disabled' , style ( { backgroundColor : new DynamicColor ( DISABLED_BACKGROUND , '#CCC' ) as unknown as string } ) ) ,
156153 transition ( 'normal => error' , animate ( FLASH_DURATION ) ) ,
157154 transition ( 'error => normal' , animate ( FLASH_DURATION ) ) ,
158155 transition ( 'normal => confirm' , animate ( FLASH_DURATION ) ) ,
@@ -181,7 +178,6 @@ export abstract class DigitSequenceEditorDirective<T> implements
181178 AfterViewInit , ControlValueAccessor , OnInit , OnDestroy , Validator {
182179 // Template accessibility
183180
184- addFocusOutline = addFocusOutline ;
185181 disableContentEditable = disableContentEditable ;
186182 htmlEscape = htmlEscape ;
187183 SPIN_DOWN = SPIN_DOWN ;
@@ -490,10 +486,7 @@ export abstract class DigitSequenceEditorDirective<T> implements
490486 if ( isString ( newValue ) )
491487 newValue = toBoolean ( newValue , false , true ) ;
492488
493- if ( this . _floating !== newValue ) {
494- this . _floating = newValue ;
495- this . adjustState ( ) ;
496- }
489+ this . _floating = newValue ;
497490 }
498491
499492 get tabindex ( ) : string { return this . _tabindex ; }
@@ -1192,11 +1185,6 @@ export abstract class DigitSequenceEditorDirective<T> implements
11921185 this . lostFocus ( ) ;
11931186 }
11941187 }
1195-
1196- if ( this . hiddenInput && ! this . disabled )
1197- this . wrapper . style . outline = getCssValue ( this . hiddenInput , 'outline' ) ;
1198- else if ( addFocusOutline )
1199- this . wrapper . style . outline = ( newFocus && ! this . disabled ? 'rgb(59, 153, 252) solid 1px' : 'black none 0px' ) ;
12001188 }
12011189
12021190 protected gainedFocus ( ) : void { }
@@ -1537,11 +1525,8 @@ export abstract class DigitSequenceEditorDirective<T> implements
15371525
15381526 if ( this . darkMode !== lastMode ) {
15391527 DynamicColor . update ( ERROR_BACKGROUND , this . darkMode ) ;
1540- DynamicColor . update ( NORMAL_BACKGROUND , this . darkMode ) ;
15411528 DynamicColor . update ( CONFIRM_BACKGROUND , this . darkMode ) ;
15421529 DynamicColor . update ( WARNING_BACKGROUND , this . darkMode ) ;
1543- DynamicColor . update ( VIEW_ONLY_BACKGROUND , this . darkMode ) ;
1544- DynamicColor . update ( DISABLED_BACKGROUND , this . darkMode ) ;
15451530
15461531 const currentState = this . displayState ;
15471532
@@ -1553,8 +1538,6 @@ export abstract class DigitSequenceEditorDirective<T> implements
15531538 }
15541539
15551540 protected adjustState ( ) : void {
1556- this . displayState = ( this . _viewOnly ? 'view-only' : ( this . _disabled ? 'disabled' : 'normal' ) ) ;
1557-
15581541 if ( this . hiddenInput ) {
15591542 const disabled = ( this . _floating || this . _disabled || this . _viewOnly ) ;
15601543 this . hiddenInput . setAttribute ( 'tabindex' , this . disabled ? '-1' : this . tabindex ) ;
0 commit comments