mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(button): use correct border-radius on menu & back button (#18501)
- adds hover and focused state to menu button references #17624
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
:host {
|
:host {
|
||||||
--background-focused: #{ion-color(primary, base, .1)};
|
--background-focused: #{ion-color(primary, base, .1)};
|
||||||
--border-radius: 10px;
|
--border-radius: 4px;
|
||||||
--color: #{$back-button-ios-color};
|
--color: #{$back-button-ios-color};
|
||||||
--icon-margin-end: -5px;
|
--icon-margin-end: -5px;
|
||||||
--icon-margin-start: -4px;
|
--icon-margin-start: -4px;
|
||||||
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
@media (any-hover: hover) {
|
@media (any-hover: hover) {
|
||||||
:host(:hover) {
|
:host(:hover) {
|
||||||
--opacity: #{$button-ios-clear-opacity-hover};
|
--opacity: .6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
@import "../../themes/ionic.globals.ios";
|
@import "../../themes/ionic.globals.ios";
|
||||||
|
|
||||||
// TODO this is needed for the ios vars to import
|
|
||||||
@import "../button/button.vars";
|
|
||||||
@import "../button/button.ios.vars";
|
|
||||||
|
|
||||||
// iOS Back Button
|
// iOS Back Button
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
|
--background-focused: #{ion-color(primary, base, .1)};
|
||||||
|
--border-radius: 4px;
|
||||||
--color: #{ion-color(primary, base)};
|
--color: #{ion-color(primary, base)};
|
||||||
--padding-start: 5px;
|
--padding-start: 5px;
|
||||||
--padding-end: 5px;
|
--padding-end: 5px;
|
||||||
@ -12,9 +14,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host(.activated) {
|
:host(.activated) {
|
||||||
opacity: 0.4;
|
opacity: .4;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (any-hover: hover) {
|
||||||
|
:host(:hover) {
|
||||||
|
opacity: .6;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ion-icon {
|
ion-icon {
|
||||||
font-size: 31px;
|
font-size: 31px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Menu Button Color: Focused
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
:host(.ion-color.ion-focused) .button-native {
|
||||||
|
background: #{current-color(base, .1)};
|
||||||
|
}
|
Reference in New Issue
Block a user