Skip to content

Commit 7d2de18

Browse files
committed
fix(back-button): apply the proper color to the back button
fixes #14177
1 parent a737323 commit 7d2de18

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

core/src/components/back-button/back-button.ios.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
border: 0;
1717
font-size: 17px;
1818
line-height: 1;
19+
20+
color: $back-button-ios-color;
1921
background-color: transparent;
22+
2023
transform: translateZ(0);
2124

2225
&.activated {
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
@import "../../themes/ionic.globals.ios";
22

3+
// iOS Back Button
4+
// --------------------------------------------------
35

4-
$back-button-ios-button-z-index: $z-index-toolbar-buttons !default;
6+
/// @prop - Z index of the back button
7+
$back-button-ios-button-z-index: $z-index-toolbar-buttons !default;
58

9+
/// @prop - Text color of the back button
10+
$back-button-ios-color: $toolbar-ios-text-color !default;

core/src/components/back-button/back-button.md.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
@import "./back-button";
2+
@import "./back-button.md.vars";
23

34
// MD Back Button
45
// --------------------------------------------------
6+
57
.back-button-md .back-button-inner {
68
@include margin(2px, 6px, 0, 0);
79
@include padding(0, 5px);
@@ -12,7 +14,10 @@
1214
font-size: 14px;
1315
font-weight: 500;
1416
text-transform: uppercase;
17+
18+
color: $back-button-md-color;
1519
background-color: transparent;
20+
1621
box-shadow: none;
1722

1823
&.activated {
@@ -25,6 +30,7 @@
2530
@include margin(0);
2631
@include padding(0, 6px);
2732
@include text-align(start);
33+
2834
font-size: 24px;
2935
font-weight: normal;
3036
line-height: 0.67;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@import "../../themes/ionic.globals.md";
2+
3+
// Material Design Back Button
4+
// --------------------------------------------------
5+
6+
/// @prop - Text color of the back button
7+
$back-button-md-color: $toolbar-md-text-color !default;

0 commit comments

Comments
 (0)