@@ -382,29 +382,33 @@ input::placeholder {
382382.chrome-select {
383383 appearance : none;
384384 user-select : none;
385- border : 1px solid var (--sys-color-neutral-outline );
386- border-radius : 4px ;
385+ width : var (--sys-size-22 );
386+ height : var (--sys-size-11 );
387+ border : var (--sys-size-1 ) solid var (--sys-color-neutral-outline );
388+ border-radius : var (--sys-shape-corner-extra-small );
387389 color : var (--sys-color-on-surface );
388390 font : inherit;
389391 margin : 0 ;
390392 outline : none;
391- padding-right : 20px ;
392- padding-left : 6px ;
393- background-image : var (--image-file-arrow-drop-down-light );
393+ padding : 0 var (--sys-size-4 ) 0 var (--sys-size-5 );
394+ background-image : var (--combobox-dropdown-arrow );
394395 background-color : var (--sys-color-surface );
395396 background-position : right center;
396397 background-repeat : no-repeat;
397- min-height : 24 px ;
398- min-width : 80 px ;
398+
399+ --combobox-dropdown-arrow : var ( --image-file-arrow-drop-down-light ) ;
399400}
400401
401402.chrome-select : disabled {
402- opacity : 38% ;
403+ opacity : 100% ;
404+ border : var (--sys-size-1 ) solid transparent;
405+ color : var (--sys-color-state-disabled );
406+ background-color : var (--sys-color-state-disabled-container );
403407}
404408
405409.theme-with-dark-background .chrome-select ,
406410: host-context (.theme-with-dark-background ) .chrome-select {
407- background-image : var (--image-file-arrow-drop-down-dark );
411+ --combobox-dropdown-arrow : var (--image-file-arrow-drop-down-dark );
408412}
409413
410414.chrome-select : enabled {
@@ -416,31 +420,36 @@ input::placeholder {
416420 background-color : var (--sys-color-state-ripple-neutral-on-subtle );
417421 }
418422
423+ & : hover : active {
424+ /* stylelint-disable plugin/use_theme_colors */
425+ background :
426+ var (--combobox-dropdown-arrow ),
427+ linear-gradient (var (--sys-color-state-hover-on-subtle ), var (--sys-color-state-hover-on-subtle )),
428+ linear-gradient (var (--sys-color-state-ripple-neutral-on-subtle ), var (--sys-color-state-ripple-neutral-on-subtle ));
429+ /* stylelint-enable plugin/use_theme_colors */
430+ background-position : right center;
431+ background-repeat : no-repeat;
432+ }
433+
419434 & : focus {
420- outline : 2 px solid var (--sys-color-state-focus-ring );
421- outline-offset : 2 px ;
435+ outline : var ( --sys-size-2 ) solid var (--sys-color-state-focus-ring );
436+ outline-offset : -1 px ;
422437 }
423438}
424439
425440@media (forced-colors : active) and (prefers-color-scheme : light) {
426- .chrome-select {
427- background-image : var (--image-file-arrow-drop-down-light );
428- }
429-
430- .theme-with-dark-background .chrome-select ,
431- : host-context (.theme-with-dark-background ) .chrome-select {
432- background-image : var (--image-file-arrow-drop-down-light );
441+ : root ,
442+ .theme-with-dark-background ,
443+ : host-context (.theme-with-dark-background ) {
444+ --combobox-dropdown-arrow : var (--image-file-arrow-drop-down-light );
433445 }
434446}
435447
436448@media (forced-colors : active) and (prefers-color-scheme : dark) {
437- .chrome-select {
438- background-image : var (--image-file-arrow-drop-down-dark );
439- }
440-
441- .theme-with-dark-background .chrome-select ,
442- : host-context (.theme-with-dark-background ) .chrome-select {
443- background-image : var (--image-file-arrow-drop-down-dark );
449+ : root ,
450+ .theme-with-dark-background ,
451+ : host-context (.theme-with-dark-background ) {
452+ --combobox-dropdown-arrow : var (--image-file-arrow-drop-down-dark );
444453 }
445454}
446455
0 commit comments