-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Logo): add inherit_color prop (#1578)
- Loading branch information
1 parent
3388abd
commit 0983343
Showing
10 changed files
with
104 additions
and
32 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
packages/dnb-design-system-portal/src/docs/uilib/components/logo/Examples.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/** | ||
* UI lib Component Example | ||
* | ||
*/ | ||
|
||
import React from 'react' | ||
import ComponentBox from 'dnb-design-system-portal/src/shared/tags/ComponentBox' | ||
|
||
export const LogoDefaultExample = () => ( | ||
<ComponentBox data-visual-test="logo-default"> | ||
{ | ||
/* jsx */ ` | ||
<Logo height="192" /> | ||
` | ||
} | ||
</ComponentBox> | ||
) | ||
|
||
export const LogoAutoSizeExample = () => ( | ||
<ComponentBox data-visual-test="logo-auto-size"> | ||
{ | ||
/* jsx */ ` | ||
<span style={{ fontSize: '12rem' }}> | ||
<Logo size="auto" /> | ||
</span> | ||
` | ||
} | ||
</ComponentBox> | ||
) | ||
|
||
export const LogoInheritSizeExample = () => ( | ||
<ComponentBox data-visual-test="logo-inherit-size"> | ||
{ | ||
/* jsx */ ` | ||
<span style={{ height: '12rem' }}> | ||
<Logo size="inherit" /> | ||
</span> | ||
` | ||
} | ||
</ComponentBox> | ||
) | ||
|
||
export const LogoInheritColorExample = () => ( | ||
<ComponentBox data-visual-test="logo-inherit-color"> | ||
{ | ||
/* jsx */ ` | ||
<span style={{ color: 'tomato' }}> | ||
<Logo height="192" inherit_color /> | ||
</span> | ||
` | ||
} | ||
</ComponentBox> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+6.08 KB
...shot-test-js-logo-screenshot-have-to-match-the-inherited-color-1-0acbf.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters