Skip to content

fix(card) Fixes the ion-card color issue #19197#19216

Closed
domske wants to merge 3 commits into
ionic-team:masterfrom
domske:master
Closed

fix(card) Fixes the ion-card color issue #19197#19216
domske wants to merge 3 commits into
ionic-team:masterfrom
domske:master

Conversation

@domske

@domske domske commented Aug 28, 2019

Copy link
Copy Markdown
Contributor

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix

What is the current behavior?

The ion-card-header does not take the color of the ion-card.
It's because the ion-card-header has a background and uses the variable ion-item-background.
Please see the issue for detailed description and demonstrations.

Issue Number: #19197

What is the new behavior?

Now the ion-card-header (and other card elements) takes the background color.
See ion-card-header.scss and ion-card.scss and the test demo item-color.
In this demo the css variable --ion-item-background is set and important for this issue.

Does this introduce a breaking change?

  • No

@ionitron-bot ionitron-bot Bot added the package: core @ionic/core package label Aug 28, 2019
@domske domske changed the title fix(core/card) Fixes the ion-card color issue #19197 fix(card) Fixes the ion-card color issue #19197 Sep 14, 2019
@adamdbradley

Copy link
Copy Markdown
Contributor

Thanks for helping to debug this! In the next major release of i'll we're going to be converting card to shadow dom, which should help solve this issue. #19395

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants