154154// --------------------------------------------------
155155
156156@media (any-hover : hover) {
157- :host (.ion-activatable :hover ) .item-native {
157+ :host (.ion-activatable :not ( .ion-focused ) : hover ) .item-native {
158158 color : var (--color-hover );
159159
160160 & ::after {
164164 }
165165 }
166166
167- :host (.ion-color.ion-activatable :hover ) .item-native {
167+ :host (.ion-color.ion-activatable :not ( .ion-focused ) : hover ) .item-native {
168168 color : #{current-color (contrast )} ;
169169
170170 & ::after {
173173 }
174174}
175175
176+
176177// Item: Disabled
177178// --------------------------------------------------
178179
@@ -308,7 +309,11 @@ button, a {
308309 z-index : 1 ;
309310}
310311
312+ // Setting pointer-events to none allows the label
313+ // to be clicked to open the select interface
311314::slotted(ion-label) {
315+ pointer-events : none ;
316+
312317 flex : 1 ;
313318}
314319
@@ -359,7 +364,7 @@ button, a {
359364 width : 100% ;
360365
361366 height : 100% ;
362-
367+
363368 transform : scaleX (0 );
364369
365370 transition : transform 200ms , border-bottom-width 200ms ;
@@ -370,6 +375,8 @@ button, a {
370375 pointer-events : none ;
371376}
372377
378+ :host (.ion-focused ) .item-highlight ,
379+ :host (.ion-focused ) .item-inner-highlight ,
373380:host (.item-has-focus ) .item-highlight ,
374381:host (.item-has-focus ) .item-inner-highlight {
375382 transform : scaleX (1 );
@@ -378,22 +385,27 @@ button, a {
378385 border-color : var (--highlight-background );
379386}
380387
388+ :host (.ion-focused ) .item-highlight ,
381389:host (.item-has-focus ) .item-highlight {
382390 border-width : var (--full-highlight-height );
383391
384392 opacity : var (--show-full-highlight );
385393}
386394
395+ :host (.ion-focused ) .item-inner-highlight ,
387396:host (.item-has-focus ) .item-inner-highlight {
388397 border-bottom-width : var (--inset-highlight-height );
389398
390399 opacity : var (--show-inset-highlight );
391400}
392401
402+ :host (.ion-focused.item-fill-solid ) .item-highlight ,
393403:host (.item-has-focus.item-fill-solid ) .item-highlight {
394404 border-width : calc (var (--full-highlight-height ) - 1px );
395405}
396406
407+ :host (.ion-focused ) .item-inner-highlight ,
408+ :host (.ion-focused :not (.item-fill-outline )) .item-highlight ,
397409:host (.item-has-focus ) .item-inner-highlight ,
398410:host (.item-has-focus :not (.item-fill-outline )) .item-highlight {
399411 border-top : none ;
@@ -405,6 +417,7 @@ button, a {
405417// Item Input Focused
406418// --------------------------------------------------
407419
420+ :host (.item-interactive.ion-focused ),
408421:host (.item-interactive.item-has-focus ),
409422:host (.item-interactive.ion-touched.ion-invalid ) {
410423 // If the item has a full border and highlight is enabled, show the full item highlight
@@ -417,6 +430,7 @@ button, a {
417430// Item Input Focus
418431// --------------------------------------------------
419432
433+ :host (.item-interactive.ion-focused ),
420434:host (.item-interactive.item-has-focus ) {
421435 --highlight-background : var (--highlight-color-focused );
422436}
@@ -553,4 +567,4 @@ ion-ripple-effect {
553567 display : none ;
554568
555569 color : var (--highlight-color-invalid );
556- }
570+ }
0 commit comments