Skip to content

Commit

Permalink
NEW: Add help text about em dashes (#137)
Browse files Browse the repository at this point in the history
closes #137
  • Loading branch information
dwhieb committed Jul 13, 2024
1 parent 8c9c57a commit 7e2af2d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions components/em-dash/em-dash.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p class=help-text>An em dash (—) indicates that there is no data for that field.</p>
7 changes: 5 additions & 2 deletions pages/Component/Component.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@import 'cite.css';
@import 'code.css';
@import 'external-link.css';
@import 'help-text.css';
@import 'inline-example.css';
@import 'label.css';
@import 'pre.css';
Expand Down Expand Up @@ -89,8 +90,10 @@ legend {
row-gap: 1em;
}

.page-title {
width: 100%;
.page-header {
align-items: center;
text-align: center;
width: 100%;
}

table {
Expand Down
5 changes: 4 additions & 1 deletion pages/Component/Component.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
{{#with component }}
<article>

<h1 class=page-title>{{ displayLanguage }}: <i class=inex>{{ displayForm }}</i></h1>
<header class=page-header>
<h1 class=page-title>{{ displayLanguage }}: <i class=inex>{{ displayForm }}</i></h1>
{{> em-dash/em-dash }}
</header>

<fieldset>
<legend class=label>Basics</legend>
Expand Down
2 changes: 1 addition & 1 deletion pages/Search/Search.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<div class='results-info sticky'>
<p class=num-results>Showing results {{ pagination.startIndex }}{{ pagination.endIndex }} of {{ totalResults }}.</p>
<p class=help-text>Click on a form in the table below to view more information about that component.</p>
<p class=help-text>An em dash (—) indicates that there is no data for that field.</p>
{{> em-dash/em-dash }}
</div>

{{> Search/components/pagination/pagination }}
Expand Down

0 comments on commit 7e2af2d

Please sign in to comment.