Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

design suggestions for RelatedPage - #214

Merged
katydecorah merged 2 commits into
related-pagefrom
related-page-suggestions
Dec 20, 2019
Merged

katydecorah merged 2 commits into
related-pagefrom
related-page-suggestions

Conversation

@katydecorah

Copy link
Copy Markdown
Contributor

@colleenmcginnis Since the new RelatedPage component is based off of Note, I wanted to make sure the patterns were introducing in #202 also come through here. I hope you don't mind that I created this PR/fork off of #213 🙏

image

  • Create a defaultProp for contentType (similar to what will be added in Rework Notes themes #202).
  • Made light adjustments to spacing.
  • Add a11yColor for when the dark theme color doesn't have a high enough contrast.
  • Make the border a little thicker around the component.
  • A couple mobile styles to hide the image on small screens.

Let me know what you think!

@colleenmcginnis colleenmcginnis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I love these changes @katydecorah! ❤️ Just curious -- do you have any recommended reading about this:

Add a11yColor for when the dark theme color doesn't have a high enough contrast.

and when it's necessary? Just so I'm aware in future work!

@katydecorah

Copy link
Copy Markdown
Contributor Author

do you have any recommended reading about this and when it's necessary?

I run Chrome devtool's accessibility audit to identify text that has low contrast to find any text that has low contrast then use the color picker to find a higher contrast color. This documentation has pretty handy steps: https://developers.google.com/web/tools/chrome-devtools/accessibility/reference

I shoot for AA compliance for all text on the page.

@katydecorah
katydecorah merged commit 1c866a7 into related-page Dec 20, 2019
@katydecorah
katydecorah deleted the related-page-suggestions branch December 20, 2019 14:35
colleenmcginnis pushed a commit that referenced this pull request Dec 23, 2019
* add new related page component

* design suggestions for RelatedPage (#214)

* design suggestions for related-page

* clean up

* add example and glossary images

* update changelog

* more changelog updates

Co-authored-by: Katy DeCorah <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants