-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/rh-card-public-background-css
- Loading branch information
Showing
21 changed files
with
148 additions
and
213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
{% set searchName = doc.tagName if doc.tagName else (title | slug) %} | ||
{% set related = searchName | relatedItems %} | ||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
{% section %} | ||
{% if related.length %} | ||
<h2>Related elements or patterns</h2> | ||
<ul id="related-items-list">{% for item in related %} | ||
<li> | ||
<a href="{{ item.url}}">{{ item.text }}</a> | ||
</li>{% endfor %} | ||
</ul> | ||
{% elseif title === 'Patterns' %} | ||
<h2>Elements</h2> | ||
<p>To learn how to use our elements in your designs, visit the <a href="{{ '/elements/' | url }}">Elements</a> section.</p> | ||
{% else %} | ||
<h2>Patterns</h2> | ||
<p>To learn how to use our patterns in your designs, visit the <a href="{{ '/patterns/' | url }}">Patterns</a> section.</p> | ||
{% endif %} | ||
{% endsection %} | ||
{% set related = (doc.tagName if doc.tagName else (title | slug)) | relatedItems %} | ||
|
||
{% section %} | ||
<h2>Feedback</h2> | ||
<p> | ||
To give feedback about anything on this page, | ||
<a href="https://github.com/RedHat-UX/red-hat-design-system/discussions">contact us</a>. | ||
</p> | ||
{% endsection %} | ||
</div> | ||
{% feedback %} | ||
{% if related.length %} | ||
<h2>Related elements or patterns</h2> | ||
<ul id="related-items-list">{% for item in related %} | ||
<li> | ||
<a href="{{ item.url}}">{{ item.text }}</a> | ||
</li>{% endfor %} | ||
</ul> | ||
{% else %} | ||
<h2>Other libraries</h2> | ||
<p>To learn more about our other libraries, visit <a href="/get-started/">this page</a>.</p> | ||
{% endif %} | ||
{% endfeedback %} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const { section } = require('./section.cjs'); | ||
|
||
module.exports = function(eleventyConfig) { | ||
eleventyConfig.addPairedShortcode('feedback', | ||
/** | ||
* Demo | ||
* A live component demo | ||
* @param {string} content | ||
* @param {object} options | ||
* @param {string} options.headline (Optional) Text to go in the heading | ||
* @param {string} options.palette Palette to apply, e.g. lightest, light see components/_section.scss | ||
* @param {string} options.headingLevel The heading level, defaults to 3 | ||
*/ | ||
function demoShortcode(content) { | ||
return /* html*/` | ||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
${section.call(this, content)?.trim() || /* html */` | ||
<h2>Other libraries</h2> | ||
<p>To learn more about our other libraries, visit <a href="/get-started/">this page</a>.</p> | ||
`} | ||
${section.call(this, /* html */` | ||
<h2>Feedback</h2> | ||
<p> | ||
To give feedback about anything on this page, | ||
<a href="https://github.com/RedHat-UX/red-hat-design-system/discussions">contact us</a>. | ||
</p> | ||
`)} | ||
</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
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 |
---|---|---|
|
@@ -154,14 +154,7 @@ tags: | |
|
||
{%- endcall %} | ||
|
||
<div class="multi-column--min-300-wide"> | ||
|
||
{% call about.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
|
||
{% call about.section("Other resources") -%} | ||
<p>To learn how to use our design system kit and libraries, visit <a href="../../get-started">this page</a>.</p> | ||
{%- endcall %} | ||
|
||
</div> | ||
{% feedback %} | ||
<h2>Other resources</h2> | ||
<p>To learn how to use our design system kit and libraries, visit <a href="/get-started/">this page</a>.</p> | ||
{% endfeedback %} |
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 |
---|---|---|
|
@@ -300,14 +300,8 @@ title: Design/code status | |
|
||
{%- endcall %} | ||
|
||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
{% feedback %} | ||
<h2>Release notes</h2> | ||
<p>To see what foundations, tokens, elements, or patterns have been released recently, visit <a href="/release-notes/">this page</a>.</p> | ||
{% endfeedback %} | ||
|
||
{% call components.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
|
||
{% call components.section("Release notes") -%} | ||
<p>To see what foundations or components have been released recently, visit <a href="../release-notes">this page</a>.</p> | ||
{%- endcall %} | ||
|
||
</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
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 |
---|---|---|
|
@@ -483,14 +483,8 @@ includeComponent: | |
|
||
{%- endcall %} | ||
|
||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
{% feedback %} | ||
<h2>Foundations</h2> | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{% endfeedback %} | ||
|
||
{% call foundations.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
|
||
{% call foundations.section("Foundations") -%} | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{%- endcall %} | ||
|
||
</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 |
---|---|---|
|
@@ -179,14 +179,9 @@ tags: | |
|
||
{%- endcall %} | ||
|
||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
{% feedback %} | ||
<h2>Foundations</h2> | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{% endfeedback %} | ||
|
||
{% call foundations.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
|
||
{% call foundations.section("Foundations") -%} | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{%- endcall %} | ||
|
||
</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 |
---|---|---|
|
@@ -371,14 +371,7 @@ includeComponent: | |
|
||
{%- endcall %} | ||
|
||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
|
||
{% call components.section("Patterns") -%} | ||
<p>To learn how to use our other patterns in your designs, visit the <a href="/patterns">Patterns</a> section.</p> | ||
{%- endcall %} | ||
|
||
{% call components.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
|
||
</div> | ||
{% feedback %} | ||
<h2>Foundations</h2> | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{% endfeedback %} |
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 |
---|---|---|
|
@@ -531,14 +531,8 @@ tags: | |
|
||
{%- endcall %} | ||
|
||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
{% feedback %} | ||
<h2>Foundations</h2> | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{% endfeedback %} | ||
|
||
{% call foundations.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
|
||
{% call foundations.section("Foundations") -%} | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{%- endcall %} | ||
|
||
</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 |
---|---|---|
|
@@ -445,14 +445,7 @@ tags: | |
|
||
{%- endcall %} | ||
|
||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
|
||
{% call foundations.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
|
||
{% call foundations.section("Foundations") -%} | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{%- endcall %} | ||
|
||
</div> | ||
{% feedback %} | ||
<h2>Foundations</h2> | ||
<p>To learn how to use our other foundations in your designs, visit the <a href="/foundations">foundations</a> section.</p> | ||
{% endfeedback %} |
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 |
---|---|---|
|
@@ -47,17 +47,9 @@ order: 0 | |
|
||
{%- endcall %} | ||
|
||
<!-- Cross links --> | ||
|
||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
<div> | ||
{% call getstarted.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
</div> | ||
<div> | ||
{% call getstarted.section("Explore") -%} | ||
<p>Our libraries include <a href="../elements">elements</a>, <a href="fts-starter-kit">patterns</a>, <a href="icon-libraries">icons</a>, and <a href="product-logo-library">product logos</a> to help you design Red Hat experiences.</p> | ||
{%- endcall %} | ||
</div> | ||
</div> | ||
{% feedback %} | ||
<h2>Explore</h2> | ||
<p>Our libraries include <a href="/elements/">elements</a>, <a href="/patterns/">patterns</a>, | ||
<a href="/get-started/icon-libraries">icons</a>, | ||
and <a href="/get-started/product-logo-library">product logos</a> to help you design Red Hat experiences.</p> | ||
{% endfeedback %} |
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 |
---|---|---|
|
@@ -204,17 +204,7 @@ includeComponent: | |
|
||
{%- endcall %} | ||
|
||
<!-- Cross links --> | ||
|
||
<div class="multi-column--min-300-wide section section--palette-default container feedback"> | ||
<div> | ||
{% call getstarted.section("Feedback") -%} | ||
<p>To give feedback about anything on this page, <a href="mailto:[email protected]">contact us</a>.</p> | ||
{%- endcall %} | ||
</div> | ||
<div> | ||
{% call getstarted.section("Other libraries") -%} | ||
<p>To learn more about our other libraries, visit <a href="../../get-started">this page</a>.</p> | ||
{%- endcall %} | ||
</div> | ||
</div> | ||
{% feedback %} | ||
<h2>Other libraries</h2> | ||
<p>To learn more about our other libraries, visit <a href="/get-started/">this page</a>.</p> | ||
{% endfeedback %} |
Oops, something went wrong.