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: feedback shortcode #1129

Merged
merged 10 commits into from
Sep 6, 2023
Merged

docs: feedback shortcode #1129

merged 10 commits into from
Sep 6, 2023

Conversation

bennypowers
Copy link
Member

@bennypowers bennypowers commented Jul 6, 2023

@changeset-bot
Copy link

changeset-bot bot commented Jul 6, 2023

⚠️ No Changeset found

Latest commit: 8d16162

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 Jul 6, 2023

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

Name Link
🔨 Latest commit 8d16162
🔍 Latest deploy log https://app.netlify.com/sites/red-hat-design-system/deploys/64f73d5b4d3d560008aa5ea1
😎 Deploy Preview https://deploy-preview-1129--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 configuration.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

Size Change: 0 B

Total Size: 188 kB

ℹ️ 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-accordion/rh-accordion.js 1.17 kB
./elements/rh-alert/rh-alert.js 4.24 kB
./elements/rh-audio-player/rh-audio-player-about.js 1.85 kB
./elements/rh-audio-player/rh-audio-player-scrolling-text-overflow.js 1.51 kB
./elements/rh-audio-player/rh-audio-player-subscribe.js 1.43 kB
./elements/rh-audio-player/rh-audio-player.js 14.2 kB
./elements/rh-audio-player/rh-cue.js 2 kB
./elements/rh-audio-player/rh-transcript.js 2.94 kB
./elements/rh-avatar/random-pattern-controller.js 2.72 kB
./elements/rh-avatar/rh-avatar.js 2.88 kB
./elements/rh-badge/rh-badge.js 862 B
./elements/rh-blockquote/rh-blockquote.js 1.96 kB
./elements/rh-button/rh-button.js 3.77 kB
./elements/rh-card/rh-card.js 1.9 kB
./elements/rh-code-block/rh-code-block.js 1.18 kB
./elements/rh-context-provider/rh-context-provider.js 185 B
./elements/rh-cta/rh-cta.js 4.04 kB
./elements/rh-dialog/rh-dialog.js 1.6 kB
./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-menu/rh-menu.js 1.02 kB
./elements/rh-navigation-secondary/rh-navigation-secondary-dropdown.js 2.31 kB
./elements/rh-navigation-secondary/rh-navigation-secondary-menu-section.js 1.46 kB
./elements/rh-navigation-secondary/rh-navigation-secondary-menu.js 1.9 kB
./elements/rh-navigation-secondary/rh-navigation-secondary-overlay.js 571 B
./elements/rh-navigation-secondary/rh-navigation-secondary.js 4.75 kB
./elements/rh-navigation-secondary/test/fixtures.js 851 B
./elements/rh-pagination/rh-pagination.js 4.45 kB
./elements/rh-spinner/rh-spinner.js 1.51 kB
./elements/rh-stat/rh-stat.js 2.24 kB
./elements/rh-subnav/rh-subnav.js 2.84 kB
./elements/rh-tabs/rh-tab-panel.js 789 B
./elements/rh-tabs/rh-tab.js 1.81 kB
./elements/rh-tabs/rh-tabs.js 1.86 kB
./elements/rh-tag/rh-tag.js 1.73 kB
./elements/rh-tooltip/rh-tooltip.js 1.07 kB
./lib/context/color/consumer.js 1.15 kB
./lib/context/color/controller.js 1.11 kB
./lib/context/color/provider.js 1.99 kB
./lib/context/event.js 598 B
./lib/context/headings/consumer.js 711 B
./lib/context/headings/controller.js 1.14 kB
./lib/context/headings/provider.js 1.23 kB
./lib/DirController.js 569 B
./lib/elements/rh-context-picker/rh-context-picker.js 1.16 kB
./lib/elements/rh-context-provider/rh-context-provider.js 746 B
./lib/functions.js 175 B
./lib/I18nController.js 1.38 kB
./lib/ScreenSizeController.js 856 B
./rhds.min.js 76.8 kB

compressed-size-action

@bennypowers bennypowers enabled auto-merge (squash) July 6, 2023 11:08
@brianferry
Copy link
Collaborator

@coreyvickery - Is there a correct side for the "Feedback" header to show on? On uxdot right now it seems to go on different sides for different pages?

For instance,

https://ux.redhat.com/about/how-we-build/

image
(On the left)

https://ux.redhat.com/patterns/

image
(On the right)

@bennypowers
Copy link
Member Author

the switch to feedback on the right was done in patterns recently to match elements but the static content pages hadn't caught up yet, this PR fixes that by putting feedback on the right in all cases

docs/elements/index.md Show resolved Hide resolved
docs/get-started/icon-libraries.njk Show resolved Hide resolved
docs/patterns/index.md Show resolved Hide resolved
docs/release-notes.njk Outdated Show resolved Hide resolved
@coreyvickery
Copy link
Collaborator

@brianferry Right side is correct. Are we proposing to have the same heading and text across the entire website? Or can we create custom instances for certain sections?

@brianferry
Copy link
Collaborator

@brianferry Right side is correct. Are we proposing to have the same heading and text across the entire website? Or can we create custom instances for certain sections?

If I get your meaning, the feedback section is the same between all the pages, but the other section (Other resources, patterns, elements, etc.) is something that can be customized between the sections of the website.

@coreyvickery
Copy link
Collaborator

If I get your meaning, the feedback section is the same between all the pages, but the other section (Other resources, patterns, elements, etc.) is something that can be customized between the sections of the website.

@brianferry Yes, the Feedback section will say one thing and should be the same across all Element pages. The Feedback section can say another thing when used on all Pattern pages. The same goes for other sections; a custom message, but the same on all pages in that section. I hope that makes sense.

@brianferry
Copy link
Collaborator

If I get your meaning, the feedback section is the same between all the pages, but the other section (Other resources, patterns, elements, etc.) is something that can be customized between the sections of the website.

@brianferry Yes, the Feedback section will say one thing and should be the same across all Element pages. The Feedback section can say another thing when used on all Pattern pages. The same goes for other sections; a custom message, but the same on all pages in that section. I hope that makes sense.

So for this PR we're adding code that will automatically generate the feedback section on any page that uses the shortcode. The feedback section will say

To give feedback about anything on this page, [contact us](https://github.com/RedHat-UX/red-hat-design-system/discussions). which seems fine to put on every page, right? Patterns doesn't need different content here than elements?

@coreyvickery
Copy link
Collaborator

coreyvickery commented Jul 10, 2023

If I get your meaning, the feedback section is the same between all the pages, but the other section (Other resources, patterns, elements, etc.) is something that can be customized between the sections of the website.

@brianferry Yes, the Feedback section will say one thing and should be the same across all Element pages. The Feedback section can say another thing when used on all Pattern pages. The same goes for other sections; a custom message, but the same on all pages in that section. I hope that makes sense.

So for this PR we're adding code that will automatically generate the feedback section on any page that uses the shortcode. The feedback section will say

To give feedback about anything on this page, [contact us](https://github.com/RedHat-UX/red-hat-design-system/discussions). which seems fine to put on every page, right? Patterns doesn't need different content here than elements?

@brianferry I understand better now. Yes, that is fine to put on every page.

Copy link
Collaborator

@marionnegp marionnegp left a comment

Choose a reason for hiding this comment

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

The Feedback section's showing up consistently on the right side of the page for me.

@bennypowers bennypowers merged commit f5250c9 into main Sep 6, 2023
@bennypowers bennypowers deleted the docs/feedback-shortcode branch September 6, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] apply the "feedback" docs component to all pages
4 participants