Skip to content

Commit

Permalink
fix(documentation): Product card with dark background do not render c…
Browse files Browse the repository at this point in the history
…orrect color (#2818)
  • Loading branch information
imagoiq authored Mar 21, 2024
1 parent d1df2c6 commit c57ffc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ describe('Product Card', () => {
it('Has no detectable a11y violations on load for all variants', () => {
cy.checkA11y('#root-inner', {
rules: {
'color-contrast': {
enabled: false,
},
'heading-order': {
enabled: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function getText(args: Args) {
function renderProductCard(args: Args) {
return html`
<a href="#" class="card product-card${args.cardClasses}">
<div class="card-body product-navigation">
<div class="card-body product-navigation bg-white">
${getTitle(args)} ${getText(args)}
<span class="link-icon">
<post-icon name="3020" aria-hidden="true"></post-icon>
Expand Down Expand Up @@ -137,7 +137,7 @@ export const Multipart: Story = {
<div class="row row-cols-md-2 border-gutters">
<div class="col-12">
<div class="card product-card">
<div class="card-body" data-sync-height-with="product-header">
<div class="card-body bg-white" data-sync-height-with="product-header">
<div class="product-navigation">
<div>
<h3>Preiswert</h3>
Expand Down Expand Up @@ -167,7 +167,7 @@ export const Multipart: Story = {
</dl>
</div>
<div class="card-body" data-sync-height-with="product-body-2">
<div class="card-body bg-white" data-sync-height-with="product-body-2">
<h5 class="h6">Sample Product</h5>
<p>140 x 90 mm bis B5 (250 x 176 mm)</p>
<dl class="mt-3 align-items-stretch">
Expand Down Expand Up @@ -217,7 +217,7 @@ export const Multipart: Story = {
</dl>
</div>
<div class="card-body">
<div class="card-body bg-light">
<button class="btn btn-secondary btn-animated w-100 mb-small-regular">
<span>Order Sample Product</span>
</button>
Expand All @@ -231,7 +231,7 @@ export const Multipart: Story = {
<div class="col-12">
<div class="card product-card">
<div class="card-body" data-sync-height-with="product-header">
<div class="card-body bg-white" data-sync-height-with="product-header">
<div class="product-navigation">
<div>
<h3>Schneller</h3>
Expand Down Expand Up @@ -266,7 +266,7 @@ export const Multipart: Story = {
</dl>
</div>
<div class="card-body" data-sync-height-with="product-body-2">
<div class="card-body bg-white" data-sync-height-with="product-body-2">
<h5 class="h6">Sample Product</h5>
<p>140 x 90 mm bis B5 (250 x 176 mm)</p>
<dl class="mt-3 align-items-stretch">
Expand Down Expand Up @@ -304,7 +304,7 @@ export const Multipart: Story = {
</dl>
</div>
<div class="card-body">
<div class="card-body bg-light">
<button class="btn btn-secondary btn-animated w-100 mb-small-regular">
<span>Order Sample Product</span>
</button>
Expand Down

0 comments on commit c57ffc5

Please sign in to comment.