mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(segment): border radius applies to indicator on ios (#20541)
fixes #20539
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
}
|
||||
|
||||
.segment-button-indicator-background {
|
||||
@include border-radius($segment-button-ios-border-radius);
|
||||
@include border-radius(var(--border-radius));
|
||||
|
||||
background: var(--indicator-color);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<ion-app>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-segment value="Free">
|
||||
<ion-segment value="Free" id="custom-radius">
|
||||
<ion-segment-button value="Paid">
|
||||
<ion-label>Paid</ion-label>
|
||||
</ion-segment-button>
|
||||
@@ -242,6 +242,12 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#custom-radius ion-segment-button {
|
||||
--background: rgba(0, 0, 255, 0.1);
|
||||
--background-checked: rgba(0, 0, 255, 0.3);
|
||||
--border-radius: 10px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Custom Checked Segment (Paid, Free, Top)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user