Skip to content

Commit

Permalink
refactor(select-modal): remove borders
Browse files Browse the repository at this point in the history
  • Loading branch information
thetaPC committed Nov 7, 2024
1 parent a862f9b commit 67701fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
13 changes: 5 additions & 8 deletions core/src/components/item/item.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--background-activated: #{globals.$ion-primitives-neutral-200};
--border-color: #{globals.$ion-primitives-neutral-300};
--border-style: #{globals.$ion-border-style-solid};
--border-width: #{0 0 globals.$ion-border-size-025 0};
--color: #{globals.$ion-primitives-neutral-1200};
--detail-icon-color: #{globals.$ion-primitives-neutral-800};
--detail-icon-font-size: #{globals.$ion-scale-600};
Expand Down Expand Up @@ -91,20 +92,16 @@ slot[name="end"]::slotted(*) {
// Ionic Item Lines
// --------------------------------------------------

// Default input items have a full border
:host(.item-interactive) {
--border-width: #{globals.$ion-border-size-0} #{globals.$ion-border-size-0} #{globals.$ion-border-size-025} #{globals.$ion-border-size-0};
--inner-border-width: #{globals.$ion-border-size-0};
}

// Full lines - apply the border to the item
// Inset lines - apply the border to the item inner
:host(.item-lines-full) {
--border-width: #{globals.$ion-border-size-0} #{globals.$ion-border-size-0} #{globals.$ion-border-size-025} #{globals.$ion-border-size-0};
--border-width: #{globals.$ion-border-size-0 globals.$ion-border-size-0 globals.$ion-border-size-025
globals.$ion-border-size-0};
}

:host(.item-lines-inset) {
--inner-border-width: #{globals.$ion-border-size-0} #{globals.$ion-border-size-0} #{globals.$ion-border-size-025} #{globals.$ion-border-size-0};
--inner-border-width: #{globals.$ion-border-size-0 globals.$ion-border-size-0 globals.$ion-border-size-025
globals.$ion-border-size-0};
}

// Full lines - remove the border from the item inner (inset list items)
Expand Down
7 changes: 7 additions & 0 deletions core/src/components/select-modal/select-modal.ionic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
// Ionic Select Modal
// --------------------------------------------------

// Item
// ----------------------------------------------------------------

ion-item {
--border-width: 0;
}

// Toolbar
// ----------------------------------------------------------------

Expand Down

0 comments on commit 67701fa

Please sign in to comment.