Skip to content

Commit

Permalink
docs: update All Elements page (#2005)
Browse files Browse the repository at this point in the history
* docs(all elements page): update thumbnail images

I updated the thumbnail images to match the updated page in Figma

* docs(all elements): make all thumbnail images the same height

* feat: updates from main

* docs(all-elements): screenshot sizing adjustments

* docs(all-elements): updated images

Updated images for alert, skip link, spinner, statistic, switch, timestamp

* docs(all-elements): tweaked thumbnail sizes

* chore: deleting files that should have been ignored

* docs(all elements): updated images

Certain images are still not showing up correctly. Breadcrumb, dialog, and video embed. Need to be looked at.

* docs(all elements): update formatting and copy

* docs(all elements): remove background fill

* docs(all elements): add paragraph tag to fix font size

* docs(all elements): add video embed image

* docs(all elements): upload correct image for video embed

---------

Co-authored-by: gradymcgee <[email protected]>
Co-authored-by: marionnegp <[email protected]>
Co-authored-by: Marionne Patel <[email protected]>
  • Loading branch information
4 people authored Dec 10, 2024
1 parent adecb7c commit f20cf3d
Show file tree
Hide file tree
Showing 52 changed files with 30 additions and 247 deletions.
12 changes: 10 additions & 2 deletions docs/elements/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ summaries:
rh-tile h3 {
margin: 0 !important;
}
rh-tile p {
margin-block: 0 0 !important;
}
uxdot-example {
height: 216px;
display: flex;
justify-content: center;
}
</style>

{# NOTE: all images in this view need to be 340 by 200 px in order to maintain same ratio. #}
Expand All @@ -49,7 +57,7 @@ summaries:
{%- set summary = summaries[slug] -%}
{% endif %}
{% if not hiddenComponent %}
<rh-tile compact bleed {% if comingSoon %}disabled{% endif %}>
<rh-tile id="tile-{{ tagName }}" compact bleed {% if comingSoon %}disabled{% endif %}>
<uxdot-example slot="image" no-border transparent><img src="{{ doc.screenshotPath }}" alt="{{ title }}"></uxdot-example>
<h3 slot="headline"><a href="{{ doc.overviewHref | url }}">{{ title }}</a></h3>
<p>{{ summary }}</p>
Expand All @@ -62,7 +70,7 @@ summaries:

<section aria-labelledby="aria__heading-make-a-request">
<h2 id="aria__heading-make-a-request">Make a request</h2>
To request a new element or if updates need to be made to an existing element, <a href="https://github.com/RedHat-UX/red-hat-design-system/issues/new/choose" target="_blank">create a GitHub issue</a>.
<p>To request a new element or if updates need to be made to an existing element, <a href="https://github.com/RedHat-UX/red-hat-design-system/issues/new/choose">create a GitHub issue</a> or <a href="/support">contact us</a>.</p>
</section>

<uxdot-feedback>
Expand Down
Binary file modified elements/rh-accordion/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elements/rh-alert/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elements/rh-audio-player/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 0 additions & 35 deletions elements/rh-audio-player/docs/screenshot.svg

This file was deleted.

Binary file modified elements/rh-avatar/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions elements/rh-avatar/docs/screenshot.svg

This file was deleted.

Binary file modified elements/rh-back-to-top/docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elements/rh-badge/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 0 additions & 29 deletions elements/rh-badge/docs/screenshot.svg

This file was deleted.

Binary file modified elements/rh-blockquote/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elements/rh-breadcrumb/docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elements/rh-button/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 0 additions & 20 deletions elements/rh-button/docs/screenshot.svg

This file was deleted.

Binary file modified elements/rh-card/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elements/rh-code-block/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elements/rh-cta/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 0 additions & 16 deletions elements/rh-cta/docs/screenshot.svg

This file was deleted.

Binary file modified elements/rh-dialog/docs/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f20cf3d

Please sign in to comment.