Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion core/src/components/item/item.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ slot[name="end"]::slotted(*) {

// Item: Focused
// --------------------------------------------------

:host(.ion-focused) .item-native::after {
@include globals.border-radius(inherit);
@include globals.position(0, 0, 0, 0);
Expand Down Expand Up @@ -112,3 +111,13 @@ slot[name="end"]::slotted(*) {
:host(.item-lines-none) {
--inner-border-width: #{globals.$ion-border-size-0};
}

// Inside a Select Modal
:host(.in-select-modal) {
--background-focused: #{globals.$ion-bg-neutral-subtlest-press};
--background-focused-opacity: 0;
}

:host(.in-select-modal.ion-focused) .item-native {
--border-radius: #{globals.$ion-border-radius-400};
}
1 change: 1 addition & 0 deletions core/src/components/item/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ export class Item implements ComponentInterface, AnchorInterface, ButtonInterfac
'item-control-needs-pointer-cursor': firstInteractiveNeedsPointerCursor,
'item-disabled': disabled,
'in-list': inList,
'in-select-modal': hostContext('ion-select-modal', this.el),
'item-multiple-inputs': this.multipleInputs,
'ion-activatable': canActivate,
'ion-focusable': this.focusable,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions core/src/components/select-modal/select-modal.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,9 @@ ion-content {
--padding-end: #{globals.$ion-space-400} !important;
/* stylelint-disable-next-line declaration-no-important */
--padding-bottom: #{globals.$ion-space-1200} !important;

// Set the background to the focused element within a radio group only when there is a checked radio
&:has(.radio-checked) .ion-focused:not(.item-radio-checked) {
--background-focused-opacity: 1;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading