Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(elements): update images and summaries #1007

Merged
merged 23 commits into from
Jun 5, 2023
Merged

docs(elements): update images and summaries #1007

merged 23 commits into from
Jun 5, 2023

Conversation

eyevana
Copy link
Collaborator

@eyevana eyevana commented May 30, 2023

Closes #1008

What I did

  1. Updated all the images and summaries for the /elements landing page according to the design spec
  2. Modified the example shortcode to allow for absolute paths in its image src

Testing Instructions

  1. Review the linked spec and verify that it matches the deploy preview

Notes to Reviewers

@changeset-bot
Copy link

changeset-bot bot commented May 30, 2023

⚠️ No Changeset found

Latest commit: ca0b83c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented May 30, 2023

Deploy Preview for red-hat-design-system ready!

Name Link
🔨 Latest commit ca0b83c
🔍 Latest deploy log https://app.netlify.com/sites/red-hat-design-system/deploys/647dfeef10ea120008481091
😎 Deploy Preview https://deploy-preview-1007--red-hat-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link
Contributor

github-actions bot commented May 30, 2023

Size Change: +116 B (0%)

Total Size: 188 kB

Filename Size Change
./elements/rh-accordion/rh-accordion.js 1.17 kB +1 B (0%)
./elements/rh-badge/rh-badge.js 922 B +3 B (0%)
./elements/rh-blockquote/rh-blockquote.js 1.96 kB +2 B (0%)
./elements/rh-button/rh-button.js 3.77 kB +1 B (0%)
./elements/rh-card/rh-card.js 1.96 kB -1 B (0%)
./elements/rh-cta/rh-cta.js 3.75 kB -4 B (0%)
./elements/rh-dialog/rh-dialog.js 1.66 kB +16 B (+1%)
./elements/rh-navigation-secondary/rh-navigation-secondary.js 4.83 kB +14 B (0%)
./elements/rh-pagination/rh-pagination.js 4.46 kB +13 B (0%)
./elements/rh-spinner/rh-spinner.js 1.6 kB +37 B (+2%)
./elements/rh-stat/rh-stat.js 2.31 kB +6 B (0%)
./elements/rh-subnav/rh-subnav.js 2.81 kB +37 B (+1%)
./elements/rh-tabs/rh-tabs.js 1.6 kB -4 B (0%)
./elements/rh-tag/rh-tag.js 1.89 kB -5 B (0%)
ℹ️ View Unchanged
Filename Size
./elements/rh-accordion/rh-accordion-header.js 1.98 kB
./elements/rh-accordion/rh-accordion-panel.js 1.24 kB
./elements/rh-alert/rh-alert.js 4.25 kB
./elements/rh-avatar/random-pattern-controller.js 2.72 kB
./elements/rh-avatar/rh-avatar.js 26.6 kB
./elements/rh-context-provider/rh-context-provider.js 749 B
./elements/rh-dialog/yt-api.js 614 B
./elements/rh-footer/rh-footer-block.js 765 B
./elements/rh-footer/rh-footer-copyright.js 362 B
./elements/rh-footer/rh-footer-links.js 1.06 kB
./elements/rh-footer/rh-footer-social-link.js 960 B
./elements/rh-footer/rh-footer-universal.js 4.07 kB
./elements/rh-footer/rh-footer.js 5.07 kB
./elements/rh-footer/rh-global-footer.js 250 B
./elements/rh-navigation-secondary/rh-navigation-secondary-dropdown.js 2.42 kB
./elements/rh-navigation-secondary/rh-navigation-secondary-menu-section.js 1.47 kB
./elements/rh-navigation-secondary/rh-navigation-secondary-menu.js 1.74 kB
./elements/rh-navigation-secondary/rh-navigation-secondary-overlay.js 571 B
./elements/rh-navigation-secondary/test/fixtures.js 851 B
./elements/rh-tabs/rh-tab-panel.js 697 B
./elements/rh-tabs/rh-tab.js 1.45 kB
./elements/rh-tooltip/rh-tooltip.js 1.16 kB
./lib/context/color/consumer.js 1.15 kB
./lib/context/color/controller.js 1.11 kB
./lib/context/color/provider.js 2 kB
./lib/context/event.js 598 B
./lib/DirController.js 488 B
./lib/functions.js 175 B
./lib/ScreenSizeController.js 856 B
./rhds.min.js 85.4 kB

compressed-size-action

@nikkimk nikkimk self-requested a review May 30, 2023 19:43
Copy link
Collaborator

@nikkimk nikkimk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good so far with a couple changes on the DP:

  • Elements should be sorted by and alias not tagName
  • Elements should be displaying alias not tagName ("Cta" should be "Call to Action", "Stat" should be "Statistic", etc.)
  • Card's summary does not match the Doc
  • Pagination has no summary displaying
  • Foundations section at the bottom should be replaced with Patterns

@eyevana
Copy link
Collaborator Author

eyevana commented May 31, 2023

@nikkimk Thanks for the review. I think I've addressed all the issues you identified. Can you take another looksy, pleaseee? <3

@coreyvickery
Copy link
Collaborator

@eyevana Some very small edits:

  • Add Breadcrumb (coming soon) card and thumbnail, but do not link it anywhere
  • Remove the gray border around the Dialog card
  • Add Footnote (coming soon) card and thumbnail, but do not link it anywhere
  • Change Navigation primary to Navigation (primary)
  • Change Subnav to Subnavigation
  • Change the text under the Make a request heading to:

To request a new element or if updates need to be made to an existing element, create a GitHub issue.

The link above should open a new tab or window.

@bennypowers bennypowers added the docs Improvements or additions to documentation label Jun 1, 2023
@coreyvickery
Copy link
Collaborator

@eyevana Hey, I do not see the (coming soon) element cards and text as described in my comment above.

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 1, 2023

@coreyvickery yep, I'm working on that last piece now. I'll ping you here when it's ready for another round of reviews.

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 2, 2023

@coreyvickery I added Breadcrumb and Footnote to /elements as coming soon. Do you also want me to include them in the side nav? For example, "Breadcrumb (coming soon)" with no link?

@coreyvickery
Copy link
Collaborator

@coreyvickery I added Breadcrumb and Footnote to /elements as coming soon. Do you also want me to include them in the side nav? For example, "Breadcrumb (coming soon)" with no link?

@eyevana No thanks.

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 2, 2023

@bennypowers @nikkimk can you take a look at how I handled the "coming soon" elements and let me know what you think? I stubbed them under the /elements directory so they could be included and sorted under the elementDocs collection, and then I just added some conditional logic in the templates to concatenate the title with "(coming soon)".

@coreyvickery
Copy link
Collaborator

@eyevana Sorry, I forgot to mention that we are removing Subnavigation for now.

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 3, 2023

@coreyvickery exclude Subnavigation completely or just mark it as coming soon?

@coreyvickery
Copy link
Collaborator

@eyevana Yes, kill it. Or create a new issue to kill it website-wide.

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 5, 2023

@coreyvickery ready for you 👁️ ❤️

Copy link
Collaborator

@nikkimk nikkimk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 5, 2023

@nikkimk thank you!

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 5, 2023

@coreyvickery I'm reverting the change where I remove subnav from the docs. We were chatting about removing subnav during office hours, and the team agrees we should keep it since it's still in use. Steven already broke it out into an issue #1029.

Copy link
Member

@bennypowers bennypowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls move images back to elements/*/docs/screenshot.png, as they can be used on other listings, not only on ux-dot

@bennypowers bennypowers enabled auto-merge (squash) June 5, 2023 15:20
@bennypowers
Copy link
Member

@eyevana looks like there are still some conflicts to resolve

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 5, 2023

@eyevana looks like there are still some conflicts to resolve

Done! :)

@eyevana
Copy link
Collaborator Author

eyevana commented Jun 5, 2023

@eyevana looks like there are still some conflicts to resolve

Done! :)

Actually need to make one more change

@bennypowers bennypowers merged commit 40bb42f into main Jun 5, 2023
8 checks passed
@bennypowers bennypowers deleted the docs/elements branch June 5, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] "All elements" docs need review/cleanup
4 participants