mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(alert): add z-index and border-radius to fix ripple
copy button css to fix the border on ripple closes #5203
This commit is contained in:
@@ -33,6 +33,7 @@ $alert-ios-button-min-height: 44px !default;
|
||||
$alert-ios-button-font-size: 17px !default;
|
||||
$alert-ios-button-text-color: map-get($colors-ios, primary) !default;
|
||||
$alert-ios-button-background-color: transparent !default;
|
||||
$alert-ios-button-border-radius: 0 !default;
|
||||
$alert-ios-button-border-color: #c8c7cc !default;
|
||||
$alert-ios-button-activated-background-color: #e9e9e9 !default;
|
||||
|
||||
@@ -172,7 +173,7 @@ ion-alert {
|
||||
flex: 1;
|
||||
font-size: $alert-ios-button-font-size;
|
||||
min-height: $alert-ios-button-min-height;
|
||||
border-radius: 0;
|
||||
border-radius: $alert-ios-button-border-radius;
|
||||
border-top: 1px solid $alert-ios-button-border-color;
|
||||
border-right: 1px solid $alert-ios-button-border-color;
|
||||
color: $alert-ios-button-text-color;
|
||||
|
||||
@@ -27,6 +27,7 @@ $alert-md-input-margin-bottom: 5px !default;
|
||||
|
||||
$alert-md-button-text-color: map-get($colors-md, primary) !default;
|
||||
$alert-md-button-background-color: transparent !default;
|
||||
$alert-md-button-border-radius: 2px !default;
|
||||
$alert-md-buttons-padding: 8px 8px 8px 24px !default;
|
||||
$alert-md-buttons-justify-content: flex-end !default;
|
||||
|
||||
@@ -219,6 +220,7 @@ $alert-md-buttons-justify-content: flex-end !default;
|
||||
font-weight: 500;
|
||||
color: $alert-md-button-text-color;
|
||||
background-color: $alert-md-button-background-color;
|
||||
border-radius: $alert-md-button-border-radius;
|
||||
text-transform: uppercase;
|
||||
|
||||
&.activated {
|
||||
|
||||
@@ -74,6 +74,7 @@ ion-alert {
|
||||
.alert-button {
|
||||
display: block;
|
||||
margin: 0;
|
||||
z-index: 0;
|
||||
line-height: $alert-button-line-height;
|
||||
font-size: $alert-button-font-size;
|
||||
margin-right: $alert-button-margin-right;
|
||||
|
||||
Reference in New Issue
Block a user