mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(components): fix issues with button states (#20278)
- Update action sheet colors to match spec (md) - Remove activated background on buttons (md - uses ripple) - Update Segment Button to use proper indicator color when inside of a toolbar - Add back input highlight on focus fixes #20276
This commit is contained in:
@ -193,11 +193,11 @@
|
||||
|
||||
// Segment button indicator color should use the background checked variable with
|
||||
// a fallback to the default value of --indicator-color
|
||||
:host(.in-toolbar) .segment-button-indicator-background {
|
||||
:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background {
|
||||
background: #{var(--ion-toolbar-segment-indicator-color, var(--indicator-color))};
|
||||
}
|
||||
|
||||
// Do not use the global or local CSS variable if the toolbar has a color
|
||||
:host(.in-toolbar-color) .segment-button-indicator-background {
|
||||
:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background {
|
||||
background: #{current-color(contrast)};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user