From 401f4ca0b91a9809ee3105045c42158f5ed7ec2e Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Sun, 13 Oct 2024 09:02:11 +0300 Subject: [PATCH] docs: importmap for uxdot-elements --- docs/_includes/layouts/pages/basic.njk | 6 ++-- docs/_includes/layouts/pages/element.11ty.ts | 12 ++++--- docs/_includes/layouts/pages/has-toc.njk | 2 +- docs/_includes/layouts/pages/pattern.njk | 2 +- docs/_includes/layouts/pages/tokens.njk | 2 +- .../partials/component/feedback.11ty.cjs | 2 +- docs/_includes/partials/component/header.njk | 17 +++++---- .../partials/component/token-search.html | 2 +- .../_includes/partials/javascript/global.html | 6 ++-- docs/about/index.md | 2 +- docs/assets/javascript/tokens-pages.js | 2 +- docs/assets/javascript/tokens.js | 2 +- docs/foundations/color/usage.md | 2 +- docs/get-started/designers.md | 2 +- docs/get-started/developers/installation.md | 2 +- docs/get-started/developers/tokens.md | 2 +- docs/get-started/developers/usage.md | 2 +- docs/patterns/logo-wall/guidelines.md | 35 ++++++++++++------ docs/patterns/tile/index.md | 2 +- docs/theming/color-palettes.md | 2 +- docs/theming/customizing.md | 2 +- docs/theming/developers.md | 2 +- elements/rh-site-status/docs/20-guidelines.md | 2 -- eleventy.config.ts | 36 +++++++++---------- 24 files changed, 86 insertions(+), 62 deletions(-) diff --git a/docs/_includes/layouts/pages/basic.njk b/docs/_includes/layouts/pages/basic.njk index 7374ec3f0e..5f92b2141c 100755 --- a/docs/_includes/layouts/pages/basic.njk +++ b/docs/_includes/layouts/pages/basic.njk @@ -6,7 +6,7 @@ layout: layouts/base.njk data-helmet> {%- if tokenSearch %} - + {%- endif %} {% include 'partials/component/masthead.njk' %} diff --git a/docs/_includes/layouts/pages/element.11ty.ts b/docs/_includes/layouts/pages/element.11ty.ts index 7c0cee4fcb..09882571aa 100644 --- a/docs/_includes/layouts/pages/element.11ty.ts +++ b/docs/_includes/layouts/pages/element.11ty.ts @@ -85,7 +85,9 @@ export default class ElementsPage { + {% include 'partials/component/masthead.njk' %} diff --git a/docs/_includes/layouts/pages/pattern.njk b/docs/_includes/layouts/pages/pattern.njk index 0a674c97b6..1e9b9ea786 100755 --- a/docs/_includes/layouts/pages/pattern.njk +++ b/docs/_includes/layouts/pages/pattern.njk @@ -8,7 +8,7 @@ layout: layouts/pages/has-toc.njk import '@rhds/elements/rh-subnav/rh-subnav.js'; import '@rhds/elements/rh-surface/rh-surface.js'; import '@rhds/elements/rh-code-block/rh-code-block.js'; - import "/assets/javascript/elements/uxdot-pattern.js"; + import "@uxdot/elements/uxdot-pattern.js"; {{ content | safe }} diff --git a/docs/_includes/layouts/pages/tokens.njk b/docs/_includes/layouts/pages/tokens.njk index fb636a5223..557ae5ddca 100644 --- a/docs/_includes/layouts/pages/tokens.njk +++ b/docs/_includes/layouts/pages/tokens.njk @@ -4,7 +4,7 @@ layout: layouts/base.njk diff --git a/docs/assets/javascript/tokens-pages.js b/docs/assets/javascript/tokens-pages.js index 29bf73a1f0..4ad6c3d9d3 100644 --- a/docs/assets/javascript/tokens-pages.js +++ b/docs/assets/javascript/tokens-pages.js @@ -1,4 +1,4 @@ -import '/assets/javascript/elements/uxdot-copy-button.js'; +import '@uxdot/elements/uxdot-copy-button.js'; import '@rhds/elements/rh-card/rh-card.js'; import { ContextChangeEvent } from '@rhds/elements/lib/elements/rh-context-picker/rh-context-picker.js'; diff --git a/docs/assets/javascript/tokens.js b/docs/assets/javascript/tokens.js index cdd3fc0f83..44f2d8cb8c 100644 --- a/docs/assets/javascript/tokens.js +++ b/docs/assets/javascript/tokens.js @@ -5,7 +5,7 @@ import '@rhds/elements/rh-tooltip/rh-tooltip.js'; import '@rhds/elements/rh-footer/rh-footer-universal.js'; // search bar -import '/assets/javascript/elements/uxdot-search.js'; +import '@uxdot/elements/uxdot-search.js'; document .getElementById('search-input') diff --git a/docs/foundations/color/usage.md b/docs/foundations/color/usage.md index d7bbe7e3df..24804a2f28 100644 --- a/docs/foundations/color/usage.md +++ b/docs/foundations/color/usage.md @@ -12,7 +12,7 @@ subnav: --- diff --git a/docs/get-started/developers/tokens.md b/docs/get-started/developers/tokens.md index 68e3dfa270..4a734ca76a 100644 --- a/docs/get-started/developers/tokens.md +++ b/docs/get-started/developers/tokens.md @@ -11,7 +11,7 @@ subnav: --- diff --git a/docs/get-started/developers/usage.md b/docs/get-started/developers/usage.md index 08c4863026..7bd062d98d 100644 --- a/docs/get-started/developers/usage.md +++ b/docs/get-started/developers/usage.md @@ -11,7 +11,7 @@ subnav: --- diff --git a/docs/patterns/logo-wall/guidelines.md b/docs/patterns/logo-wall/guidelines.md index 92e38360ec..3555a1fcd6 100644 --- a/docs/patterns/logo-wall/guidelines.md +++ b/docs/patterns/logo-wall/guidelines.md @@ -11,15 +11,21 @@ subnav: order: 3 --- - + ## Usage -Use a logo wall when you need to display multiple Red Hat and/or partner logos in a group. +Use a logo wall when you need to display multiple Red Hat and/or partner logos +in a group. ## Variants -A logo wall is available in two styles: bordered and borderless. Both variants can be either interactive or static. However, it is recommended to use the bordered variant for interactive logos and the borderless variant for static logos. +A logo wall is available in two styles: bordered and borderless. Both variants +can be either interactive or static. However, it is recommended to use the +bordered variant for interactive logos and the borderless variant for static +logos. ### Bordered @@ -41,7 +47,9 @@ A logo wall is available in two styles: bordered and borderless. Both variants c ## Layout -Ensure that all logos are at a size in which they are clearly legible. Use your best judgment to ensure that logos are neither too large nor too small and are proportionate to other elements on the page. +Ensure that all logos are at a size in which they are clearly legible. Use your +best judgment to ensure that logos are neither too large nor too small and are +proportionate to other elements on the page. Here are some guidelines to follow if you’re unsure: - On desktop, there should be a maximum of 6 logos in a row. @@ -49,19 +57,25 @@ Here are some guidelines to follow if you’re unsure: ### Responsive sizing -Each logo is in a container. The size of each container and logo is determined by the designer but should abide by best practices. Designers should ensure that all logos are of a similar size and proportionate to each other. Logos are centered vertically and horizontally within the container. +Each logo is in a container. The size of each container and logo is determined +by the designer but should abide by best practices. Designers should ensure that +all logos are of a similar size and proportionate to each other. Logos are +centered vertically and horizontally within the container. ### Bordered -Logo sizes may decrease on smaller screens, however the container will retain 16px padding on all sides. Logos are horizontally and vertically aligned. +Logo sizes may decrease on smaller screens, however the container will retain +16px padding on all sides. Logos are horizontally and vertically aligned. ### Borderless -Logo sizes may decrease on smaller screens. Logo containers can adjust margins and padding for smaller screens. Logos are horizontally and vertically aligned. +Logo sizes may decrease on smaller screens. Logo containers can adjust margins +and padding for smaller screens. Logos are horizontally and vertically aligned. ## Best practices ### Color contrast -When displaying our partners' logos, it is essential to respect their brand identity by ensuring that their logos meet accessibility standards. +When displaying our partners' logos, it is essential to respect their brand +identity by ensuring that their logos meet accessibility standards.
@@ -87,8 +101,9 @@ When displaying our partners' logos, it is essential to respect their brand iden ### Art Direction -When alternating graphics depending on the color palette, You should be careful select -only the themable container which is the direct ancestor of the logo wall. +When alternating graphics depending on the color palette, You should be careful +select only the themable container which is the direct ancestor of the logo +wall.
diff --git a/docs/patterns/tile/index.md b/docs/patterns/tile/index.md index c6a4162209..97ebe4a80e 100644 --- a/docs/patterns/tile/index.md +++ b/docs/patterns/tile/index.md @@ -17,7 +17,7 @@ subnav: diff --git a/docs/theming/color-palettes.md b/docs/theming/color-palettes.md index c603610a46..eb1265da09 100644 --- a/docs/theming/color-palettes.md +++ b/docs/theming/color-palettes.md @@ -15,7 +15,7 @@ order: 2 href="../color-palettes.css"> -