Skip to content

Commit

Permalink
fix: misc doc quirks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemai2awesome committed Jun 17, 2020
1 parent c48ef5b commit 62741ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
18 changes: 10 additions & 8 deletions docs-site/src/components/pattern-lab-utils/docs.twig
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

{# Overview #}
<bolt-tab-panel>
<bolt-text slot="label">Overview</bolt-text>
<bolt-text slot="label" tag="h2">Overview</bolt-text>

<bolt-text headline font-size="xlarge" tag="h3">
Install
Expand All @@ -99,23 +99,25 @@
{% endfor %}
</bolt-list>
{% endif %}
</bolt-tab-panel>

{# Twig Usage #}
{% if usage_content %}
<bolt-tab-panel>
<bolt-text slot="label" tag="h2">Twig Usage</bolt-text>

{% if usage_content %}
<bolt-text headline font-size="xlarge" tag="h3">
Usage
</bolt-text>
{% include "@bolt-components-code-snippet/code-snippet.twig" with {
display: "block",
lang: "twig",
content: usage_content
} only %}
{% endif %}
</bolt-tab-panel>
</bolt-tab-panel>
{% endif %}

{# Schema #}
{% if schema and schema.properties %}
<bolt-tab-panel>
<bolt-text slot="label">Schema</bolt-text>
<bolt-text slot="label" tag="h2">Schema</bolt-text>

{% include "@utils/schema-docs.twig" with { schema: schema } only %}
</bolt-tab-panel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
icon: {
name: "bolt-logo-colored",
position: "before",
background: "circle",
size: "medium",
},
attributes: {
class: [
Expand Down Expand Up @@ -239,8 +237,6 @@
icon: {
name: "documentation",
position: "before",
background: "circle",
size: "medium",
},
attributes: {
class: [
Expand Down Expand Up @@ -324,10 +320,10 @@
{% endset %}

<bolt-list display="inline@xxlarge" spacing="large" align="center" inset nowrap>
<bolt-list-item class="t-bolt-light">
<bolt-list-item class="t-bolt-xlight">
{{ content }}
</bolt-list-item>
<bolt-list-item class="t-bolt-dark">
<bolt-list-item class="t-bolt-xdark">
{{ content }}
</bolt-list-item>
</bolt-list>
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

{% import _self as modal_code %}


"on-click": "show",
"on-click-target": "js-modal-123"

{% set modal_demo %}
<bolt-button on-click="show" on-click-target="js-bolt-modal-demo">
Open Modal
Expand Down

0 comments on commit 62741ad

Please sign in to comment.