@@ -40,7 +40,7 @@ $transition-duration: .25s;
4040 }
4141
4242 [part = ' prefix' ] {
43- border-start-start-radius : var-get ($theme , ' border -border-radius' );
43+ border-start-start-radius : var-get ($theme , ' box -border-radius' );
4444 grid-area : 1 / 1 ;
4545
4646 ::slotted (* ) {
@@ -49,7 +49,7 @@ $transition-duration: .25s;
4949 }
5050
5151 [part = ' suffix' ] {
52- border-start-end-radius : var-get ($theme , ' border -border-radius' );
52+ border-start-end-radius : var-get ($theme , ' box -border-radius' );
5353 grid-area : 1 / 3 ;
5454
5555 ::slotted (* ) {
@@ -91,7 +91,6 @@ $transition-duration: .25s;
9191 [part ~= ' input' ] {
9292 @include type-style (' body-2' );
9393
94- color : var-get ($theme , ' idle-text-color' );
9594 font-size : rem (12px );
9695 line-height : rem (16px );
9796 background : initial ;
@@ -115,26 +114,22 @@ $transition-duration: .25s;
115114 }
116115}
117116
118- [part ~= ' filled' ] {
119- [part ~= ' input' ] {
120- color : var-get ($theme , ' filled-text-color' );
121- }
122- }
123-
124117:host (:not ([disabled ],[readonly ]):hover ),
125118:host (:not ([disabled ])[readonly ][role = ' combobox' ]:hover ) {
126- [part ~= ' filled' ] {
127- [part ~= ' input' ] {
128- color : var-get ($theme , ' filled-text-hover-color' );
129- }
130- }
131-
132119 [part ^= ' container' ] {
133120 background : var-get ($theme , ' box-background-hover' );
134121 border-color : var-get ($theme , ' hover-bottom-line-color' );
135122 }
136123}
137124
125+ :host (:not ([disabled ],[readonly ]):focus-within ),
126+ :host (:not ([disabled ])[readonly ][role = ' combobox' ]:focus-within ) {
127+ [part ^= ' container' ] {
128+ background : var-get ($theme , ' box-background-focus' );
129+ caret-color : var-get ($theme , ' focused-bottom-line-color' );
130+ }
131+ }
132+
138133:host (:focus-within ) {
139134 [part = ' prefix' ],
140135 [part = ' suffix' ] {
@@ -144,9 +139,6 @@ $transition-duration: .25s;
144139 }
145140
146141 [part ^= ' container' ] {
147- background : var-get ($theme , ' box-background-focus' );
148- caret-color : var-get ($theme , ' focused-bottom-line-color' );
149-
150142 & ::after {
151143 transform : scaleY (1 );
152144 }
@@ -155,12 +147,6 @@ $transition-duration: .25s;
155147 [part = ' label' ] {
156148 color : var-get ($theme , ' focused-secondary-color' );
157149 }
158-
159- [part ~= ' filled' ] {
160- [part ~= ' input' ] {
161- color : var-get ($theme , ' focused-text-color' );
162- }
163- }
164150}
165151
166152:host (:not ([aria-haspopup = ' dialog' ],[role = ' combobox' ],[disabled ])[readonly ]) {
@@ -186,7 +172,28 @@ $transition-duration: .25s;
186172 }
187173}
188174
189- :host ([type = ' search' ]) {
175+ :host ([type = ' search' ]:not ([disabled ])) {
176+ [part ^= ' container' ] {
177+ background : var-get ($theme , ' search-background' );
178+ box-shadow : var-get ($theme , ' search-resting-elevation' );
179+
180+ & :hover {
181+ background : var-get ($theme , ' box-background-hover' );
182+ }
183+
184+ & :focus-within ,
185+ & :focus-within:hover {
186+ background : var-get ($theme , ' box-background-focus' );
187+ }
188+ }
189+
190+ & :focus-within ,
191+ & :focus-within:hover {
192+ [part ^= ' container' ] {
193+ background : var-get ($theme , ' box-background-focus' );
194+ }
195+ }
196+
190197 %suffix-preffix {
191198 padding-inline : pad-inline (rem (6px ), rem (8px ), rem (10px ));
192199 }
0 commit comments