Skip to content

Commit 7050039

Browse files
committed
fix(card-subtitle): add and document custom CSS properties
references #14850 references #14808
1 parent e92ff8a commit 7050039

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

core/src/components/card-subtitle/card-subtitle.ios.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// --------------------------------------------------
66

77
:host {
8-
--ion-color-base: #{$card-ios-subtitle-color};
8+
--color: #{$card-ios-subtitle-color};
99

1010
@include margin($card-ios-subtitle-margin-top, $card-ios-subtitle-margin-end, $card-ios-subtitle-margin-bottom, $card-ios-subtitle-margin-start);
1111
@include padding($card-ios-subtitle-padding-top, $card-ios-subtitle-padding-end, $card-ios-subtitle-padding-bottom, $card-ios-subtitle-padding-start);

core/src/components/card-subtitle/card-subtitle.md.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// --------------------------------------------------
66

77
:host {
8-
--ion-color-base: #{$card-md-subtitle-color};
8+
--color: #{$card-md-subtitle-color};
99

1010
@include margin($card-md-subtitle-margin-top, $card-md-subtitle-margin-end, $card-md-subtitle-margin-bottom, $card-md-subtitle-margin-start);
1111
@include padding($card-md-subtitle-padding-top, $card-md-subtitle-padding-end, $card-md-subtitle-padding-bottom, $card-md-subtitle-padding-start);

core/src/components/card-subtitle/card-subtitle.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
// --------------------------------------------------
55

66
:host {
7+
/**
8+
* @prop --color: Color of the card subtitle
9+
*/
10+
711
display: block;
812
position: relative;
913

10-
color: #{current-color(base)};
14+
color: var(--color);
1115
}
16+
17+
:host(.ion-color) {
18+
color: current-color(base);
19+
}

0 commit comments

Comments
 (0)