-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from SFDigitalServices/fieldset-example
Add fieldset component example, fix CSS
- Loading branch information
Showing
7 changed files
with
91 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
<fieldset class="bg-blue-1 round-1"> | ||
<div class="p-2"> | ||
<legend class="f-3" ref="header"> | ||
{{ ctx.tk('legend') }} | ||
</legend> | ||
<fieldset> | ||
<legend class="f-3" ref="header"> | ||
{{ ctx.tk('legend') }} | ||
</legend> | ||
|
||
{% const desc = ctx.tk('description') %} | ||
{% if (desc) { %} | ||
<div class="f-2 fg-light-slate mb-1">{{ desc }}</div> | ||
{% } %} | ||
{% const desc = ctx.tk('description') %} | ||
{% if (desc) { %} | ||
<div class="f-2 mb-1">{{ desc }}</div> | ||
{% } %} | ||
|
||
<div ref="{{ctx.nestedKey}}"> | ||
{{ctx.children}} | ||
</div> | ||
<div ref="{{ctx.nestedKey}}"> | ||
{{ctx.children}} | ||
</div> | ||
</fieldset> |
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,4 +1,4 @@ | ||
<div class="message message-{{ ctx.level }} small my-1"> | ||
<div class="message message-{{ ctx.level }} small mt-1"> | ||
<span class="d-inline-block v-align-middle mr-1" data-icon="{{ ctx.level }}" data-height="15"></span> | ||
{{ ctx.message }} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
{% const visible = ctx.component.properties.visible !== "false" %} | ||
<div ref="{{ ctx.nestedKey }}" class="{{ visible ? ' bg-blue-1 p-2 round-1' : '' }}"> | ||
<div aria-labelledby="label-{{ ctx.id }}" ref="{{ ctx.nestedKey }}" class="well{{ visible ? ' bg-blue-1 round-1 p-2' : '' }}"> | ||
{% const label = ctx.tk('label') %} | ||
{% if (label) { %} | ||
<label class="f-3" id="label-{{ ctx.id }}"> | ||
{{ label }} | ||
</label> | ||
{% } %} | ||
|
||
{% const desc = ctx.tk('description') %} | ||
{% if (desc) { %} | ||
<p class="description mt-0 mb-1">{{ desc }}</p> | ||
<div class="mb-1">{{ desc }}</div> | ||
{% } %} | ||
|
||
{{ ctx.children }} | ||
</div> |