Skip to content

Commit

Permalink
Add fix (CSS specificity)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Nov 25, 2024
1 parent 29658c3 commit e87bde9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('Form.Card', () => {
expect(screenshot).toMatchImageSnapshot()
})

it('have to match outset when used in wizard', async () => {
it('have to match when used in wizard', async () => {
const screenshot = await makeScreenshot({
url,
selector: '[data-visual-test="forms-card-in-wizard"]',
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

&--variant-basic {
--border-color: transparent;
.dnb-card {
.dnb-card,
.dnb-card & .dnb-card {
--card-outline-color: transparent;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.dnb-forms-wizard-layout {
&__contents {
.dnb-card {
// something with this adds outline
// Change the default outline color to match the StepIndicator v2.
// This is deprecated and can be removed when the StepIndicator v3 (without a sidebar) is released.
--card-outline-color: var(--color-pistachio);
}
}
Expand Down

0 comments on commit e87bde9

Please sign in to comment.