-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): update Illustrated Messages to lates design and add respon…
…siveness
- Loading branch information
1 parent
a9d0906
commit 606047b
Showing
14 changed files
with
115 additions
and
59 deletions.
There are no files selected for viewing
20 changes: 11 additions & 9 deletions
20
libs/core/illustrated-message/illustrated-message.component.html
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
@if (!noSvg || _inlineSvg) { | ||
<svg class="fd-illustrated-message__illustration" [attr.aria-label]="svgAriaLabel"> | ||
<use [attr.href]="_href"></use> | ||
</svg> | ||
} | ||
@if (_inlineSvg) { | ||
<div [style.display]="'none'" [innerHTML]="_inlineSvg"></div> | ||
} | ||
<ng-content select="[fd-illustrated-message-figcaption]"></ng-content> | ||
<div class="fd-illustrated-message__container"> | ||
@if (!noSvg || _inlineSvg) { | ||
<svg class="fd-illustrated-message__illustration" [attr.aria-label]="svgAriaLabel"> | ||
<use [attr.href]="_href"></use> | ||
</svg> | ||
} | ||
@if (_inlineSvg) { | ||
<div [style.display]="'none'" [innerHTML]="_inlineSvg"></div> | ||
} | ||
<ng-content select="[fd-illustrated-message-figcaption]"></ng-content> | ||
</div> | ||
<ng-content select="fd-illustrated-message-actions"></ng-content> |
4 changes: 4 additions & 0 deletions
4
libs/core/illustrated-message/illustrated-message.component.scss
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
@import 'fundamental-styles/dist/illustrated-message'; | ||
|
||
.fd-illustrated-message__illustration { | ||
height: var(--illustrationMaxWidth); | ||
} |
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
7 changes: 3 additions & 4 deletions
7
libs/docs/core/illustrated-message/examples/illustrated-message-example.component.html
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<div [style.width.%]="100" [style.display]="'flex'" [style.justify-content]="'center'"> | ||
<figure fd-illustrated-message [svgConfig]="sceneConfig" svgAriaLabel="Illustration label"> | ||
<figcaption fd-illustrated-message-figcaption> | ||
<h3 fd-illustrated-message-title>Headline text goes here</h3> | ||
<p fd-illustrated-message-text>Description provides user with clarity and possible next steps.</p> | ||
<h3 fd-illustrated-message-title>Let's get some results</h3> | ||
<p fd-illustrated-message-text>Start by providing your search criteria.</p> | ||
</figcaption> | ||
<fd-illustrated-message-actions> | ||
<button fd-button label="Action One"></button> | ||
<button fd-button label="Action Two"></button> | ||
<button fd-button label="Button"></button> | ||
</fd-illustrated-message-actions> | ||
</figure> | ||
</div> |
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
7 changes: 3 additions & 4 deletions
7
.../docs/core/illustrated-message/examples/illustrated-message-inline-example.component.html
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<div [style.width.%]="100" [style.display]="'flex'" [style.justify-content]="'center'"> | ||
<figure fd-illustrated-message [svgConfig]="sceneConfig()"> | ||
<figcaption fd-illustrated-message-figcaption> | ||
<h3 fd-illustrated-message-title>Headline text goes here</h3> | ||
<p fd-illustrated-message-text>Description provides user with clarity and possible next steps.</p> | ||
<h3 fd-illustrated-message-title>No new mail</h3> | ||
<p fd-illustrated-message-text>Check back again later.</p> | ||
</figcaption> | ||
<fd-illustrated-message-actions> | ||
<button fd-button label="Action One"></button> | ||
<button fd-button label="Action Two"></button> | ||
<button fd-button label="Compose"></button> | ||
</fd-illustrated-message-actions> | ||
</figure> | ||
</div> |
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
2 changes: 1 addition & 1 deletion
2
libs/docs/core/illustrated-message/examples/illustrated-message-spot-example.component.html
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