Skip to content

Commit

Permalink
fix(card-title): add and document custom CSS properties
Browse files Browse the repository at this point in the history
references #14850 references #14808
  • Loading branch information
brandyscarney committed Aug 14, 2018
1 parent 7050039 commit 1ad9818
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/src/components/card-title/card-title.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// --------------------------------------------------

:host {
--color: #{$card-ios-title-text-color};

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

color: #{$card-ios-title-text-color};

font-size: $card-ios-title-font-size;
font-weight: $card-ios-title-font-weight;

Expand Down
4 changes: 2 additions & 2 deletions core/src/components/card-title/card-title.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// --------------------------------------------------

:host {
--color: #{$card-md-title-text-color};

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

color: #{$card-md-title-text-color};

font-size: $card-md-title-font-size;

line-height: 1.2;
Expand Down
10 changes: 7 additions & 3 deletions core/src/components/card-title/card-title.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
// --------------------------------------------------

:host {
/**
* @prop --color: Color of the card title
*/

display: block;
position: relative;

color: var(--color);
}

:host(.ion-color) {
// TODO can we remove important here
/* stylelint-disable-next-line declaration-no-important */
color: #{current-color(base)} !important;
color: #{current-color(base)};
}

0 comments on commit 1ad9818

Please sign in to comment.