Skip to content

Commit

Permalink
Fixed minor documentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jllr committed Dec 2, 2020
1 parent f6e2a6b commit 302100f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/website/views/components/table/_examples.pug
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ p.-text Enable a hover state by applying the modifier class <code>-hover</code>.

h3 Portal theme
p.-text
| Enable portal styling by applying class <code>-portal</code>.
| Enable portal styling by applying class <code>-portal</code> and <code>-sm</code>.
| To display a row in active / selected state, apply class <code>-active</code> to the <code>tr</code>.
:example(lang="html"):html-beautify:pug include ./_portal.pug

Expand Down Expand Up @@ -255,4 +255,4 @@ h2 Two tier table header
td —
td 1
td 66%
td 66%
td 66%
2 changes: 1 addition & 1 deletion src/website/views/components/table/_portal.pug
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include ./_common.pug

table.chi-table.-portal
table.chi-table.-portal.-sm
thead
tr
th Name
Expand Down
27 changes: 16 additions & 11 deletions src/website/views/templates/portal.pug
Original file line number Diff line number Diff line change
Expand Up @@ -945,14 +945,14 @@ h3 Base
| <a href="../../getting-started/installation">Chi.js</a>.
:code(lang="html")
<!-- Trigger -->
<button id="modal-trigger-10" class="chi-button chi-modal__trigger" data-target="#modal-10">
<button id="modal-trigger-base" class="chi-button chi-modal__trigger" data-target="#modal-base">
Launch portal modal
</button>

<!-- Modal -->
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<section id="modal-10" class="chi-modal -portal" role="dialog" aria-label="Modal description" aria-modal="true">
<section id="modal-base" class="chi-modal -portal" role="dialog" aria-label="Modal description" aria-modal="true">
<header class="chi-modal__header">
<h2 class="chi-modal__title">Modal Title</h2>
<button class="chi-button -icon -close" data-dismiss="modal" aria-label="Close">
Expand All @@ -972,7 +972,7 @@ h3 Base
</div>

<!-- JavaScript -->
<script>chi.modal(document.getElementById('modal-trigger-10'));</script>
<script>chi.modal(document.getElementById('modal-trigger-base'));</script>

h3 Alert
.example.-mb--3
Expand Down Expand Up @@ -1009,14 +1009,14 @@ h3 Alert
| <a href="../../getting-started/installation">Chi.js</a>.
:code(lang="html")
<!-- Trigger -->
<button id="modal-trigger-11" class="chi-button chi-modal__trigger" data-target="#modal-11">
<button id="modal-trigger-alert" class="chi-button chi-modal__trigger" data-target="#modal-alert">
Launch portal alert modal
</button>

<!-- Modal -->
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<section id="modal-11" class="chi-modal -portal" role="dialog" aria-label="Modal description" aria-modal="true">
<section id="modal-alert" class="chi-modal -portal" role="dialog" aria-label="Modal description" aria-modal="true">
<header class="chi-modal__header">
<h2 class="chi-modal__title">Alert Modal Title</h2>
<button class="chi-button -icon -close" data-dismiss="modal" aria-label="Close">
Expand All @@ -1042,7 +1042,7 @@ h3 Alert
</div>

<!-- JavaScript -->
<script>chi.modal(document.getElementById('modal-trigger-11'));</script>
<script>chi.modal(document.getElementById('modal-trigger-alert'));</script>

h2 Drawer
.example.-mb--3(style='overflow:hidden;')
Expand All @@ -1066,14 +1066,19 @@ h2 Drawer
a(href=`#html-portal-drawer`) HTML Blueprint
.chi-tabs-panel#webcomponent-portal-drawer
.chi-tabs-panel.-active#html-portal-drawer
.chi-tab__description
span.-text--grey
| This HTML Blueprint requires JavaScript.
| You may use your own solution, or use Chi's vanilla JavaScript solution,
| <a href="../../getting-started/installation">Chi.js</a>.
:code(lang="html")
<!-- Trigger -->
<button id="drawer-trigger-23" class="chi-button -primary chi-drawer__trigger" data-target="#drawer-23">Launch demo drawer</button>
<button id="drawer-trigger" class="chi-button -primary chi-drawer__trigger" data-target="#drawer">Launch demo drawer</button>

<!-- Drawer -->
<div class="chi-backdrop -closed">
<div class="chi-backdrop__wrapper">
<div id="drawer-23" class="chi-drawer -bottom -portal">
<div id="drawer" class="chi-drawer -bottom -portal">
<div class="chi-drawer__header">
<span class="chi-drawer__title">
Drawer title here
Expand All @@ -1092,7 +1097,7 @@ h2 Drawer
</div>

<!-- JavaScript -->
<script>chi.drawer(document.getElementById('drawer-trigger-23'));</script>
<script>chi.drawer(document.getElementById('drawer-trigger'));</script>

h2 Accordion
.example.-mb--3
Expand Down Expand Up @@ -1132,8 +1137,8 @@ h2 Accordion
a(href=`#webcomponent-portal-accordion`) Web Component
li.-active
a(href=`#html-portal-accordion`) HTML Blueprint
.chi-tabs-panel#webcomponent-accordion-portal
.chi-tabs-panel.-active#html-accordion-portal
.chi-tabs-panel#webcomponent-portal-accordion
.chi-tabs-panel.-active#html-portal-accordion
.chi-tab__description
span.-text--grey
| This HTML Blueprint requires JavaScript.
Expand Down

0 comments on commit 302100f

Please sign in to comment.