Skip to content

Commit ce78c34

Browse files
committed
fix(dialog): fix button color ignored in iOS theme
fixes #4373
1 parent d8e8167 commit ce78c34

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/core/components/button/button-vars.less

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@
6262
--f7-segmented-strong-button-text-transform: none;
6363
--f7-segmented-strong-button-active-font-weight: 600;
6464

65-
--f7-button-tonal-bg-color: rgba(var(--f7-theme-color-rgb), 0.15);
66-
--f7-button-tonal-pressed-bg-color: rgba(var(--f7-theme-color-rgb), 0.25);
67-
--f7-button-tonal-text-color: var(--f7-theme-color);
68-
6965
.light-vars({
7066
--f7-segmented-strong-bg-color: rgba(0,0,0,0.07);
7167
--f7-segmented-strong-button-pressed-bg-color: rgba(0,0,0,0.07);
@@ -77,6 +73,11 @@
7773
});
7874

7975
});
76+
.ios-color-vars({
77+
--f7-button-tonal-bg-color: rgba(var(--f7-theme-color-rgb), 0.15);
78+
--f7-button-tonal-pressed-bg-color: rgba(var(--f7-theme-color-rgb), 0.25);
79+
--f7-button-tonal-text-color: var(--f7-theme-color);
80+
});
8081
.md-vars({
8182
--f7-button-font-size: 14px;
8283
/*

src/core/less/mixins.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
}
3333
}
3434
}
35+
.ios-color-vars(@ruleset) {
36+
& when (@includeIosTheme) {
37+
.ios,
38+
.ios .dark,
39+
.ios [class*='color-'] {
40+
@ruleset();
41+
}
42+
}
43+
}
3544
.md-vars(@ruleset) {
3645
& when (@includeMdTheme) {
3746
.md {

0 commit comments

Comments
 (0)