Skip to content

Commit

Permalink
VF content defentition list support, component library quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
khawkins98 committed Dec 8, 2021
1 parent 5b7d491 commit b5ca120
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 9 deletions.
4 changes: 4 additions & 0 deletions components/vf-content/CHANGELOG.md
@@ -1,3 +1,7 @@
### 1.6.7

* Add support for definition lists.

### 1.6.3

* Dependency bumps.
Expand Down
13 changes: 13 additions & 0 deletions components/vf-content/vf-content.njk
Expand Up @@ -31,6 +31,19 @@
- A bulleted item
- A bulleted item

### Definition lists

<dl>
<dt>Beast of Bodmin</dt>
<dd>A large feline inhabiting Bodmin Moor.</dd>

<dt>Morgawr</dt>
<dd>A sea serpent.</dd>

<dt>Owlman</dt>
<dd>A giant owl-like creature.</dd>
</dl>

{% endmarkdown %}

<table>
Expand Down
9 changes: 9 additions & 0 deletions components/vf-content/vf-content.scss
Expand Up @@ -122,6 +122,15 @@
margin-bottom: map-get($vf-spacing-map, vf-spacing--400);
}

dl:not([class*='vf-']) {
dt:not([class*='vf-']) {
@include set-type(text-heading--4, $custom-margin-bottom: 8px);
}
dd:not([class*='vf-']) {
@include set-type(text-body--2);
}
}

img:not([class*='vf-']) {
height: auto;
max-width: 100%;
Expand Down
8 changes: 4 additions & 4 deletions components/vf-list/vf-list.scss
Expand Up @@ -26,11 +26,11 @@

// VF definition lists
// https://github.com/visual-framework/vf-core/issues/914
.vf-list--definition {
@include list(vf-list--unordered, unordered);
}
// .vf-list--definition {
// @include list(vf-list--unordered, unordered);
// }
.vf-list--definition__term {
@include set-type(text-heading--4);
@include set-type(text-heading--4, $custom-margin-bottom: 8px);
}
.vf-list--definition__details {
@include set-type(text-body--2);
Expand Down
Expand Up @@ -46,7 +46,7 @@ We have a recommended development environment for new developers:

<div class="vf-box vf-box-theme-- vf-box- vf-box-theme--quinary">
<h4 class=" vf-box__heading">Problems?</h4>
<p class="vf-box__text">See the <a href="({{ '/troubleshooting' | url}})" class="vf-link">troubleshooting guide</a>.</p>
<p class="vf-box__text">See the <a href="{{ '/troubleshooting' | url}}" class="vf-link">troubleshooting guide</a>.</p>
</div>

### Developing the VF Core
Expand Down
5 changes: 1 addition & 4 deletions tools/vf-component-library/src/site/patterns/article.njk
Expand Up @@ -187,10 +187,7 @@ layout: layouts/boilerplate.njk
"text": "Version, 1982, Adenovirus with 217 dots.",
"alttext": "hello alt text",
"imageUrl": "../../assets/vf-figure/assets/figure-example.png"
}
%}
{% render '@vf-figure', context %}
{# vf-figure needs template updates to work with include #}
} %}
{% include "vf-core-components/vf-figure/vf-figure.njk" %}
</section>

Expand Down

0 comments on commit b5ca120

Please sign in to comment.