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

Create themes component to house shared themes for Tag and Note #217

Merged
merged 16 commits into from
Jan 3, 2020

Conversation

katydecorah
Copy link
Contributor

@katydecorah katydecorah commented Dec 20, 2019

Blocked by #216

This PR adds a Theme "component", using quotes here since it exports a JSON object, that stores shared theme data for Tag and Note. This PR also tests the color contrast between the background color and color in Themes to help make sure they are accessible.

To test:

  1. npm ci
  2. npm start
  3. navigate to the /Themes page to see each note and, when available, coordinating tag.

@katydecorah katydecorah changed the base branch from refactor-tag-n-flag to master December 23, 2019 21:53
@katydecorah katydecorah marked this pull request as ready for review January 2, 2020 18:26
* master:
  Collapse grayed lines in code block (#206)
Copy link
Contributor

@colleenmcginnis colleenmcginnis left a comment

Choose a reason for hiding this comment

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

@katydecorah! I love this! One small question below.

themes.legacy.label = 'Legacy';
(themes.legacy.tooltipText =
'This feature is no longer in active development.'),
(themes.new = Object.assign({}, themes.beta));
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that the default theme is gray (and blue is available), what do you think about using blue for either new or beta?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wowowowowow blue for beta!!!!!!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like the blue! Just want to flag that the color of links is the same color as the text:

image

@colleenmcginnis I think it's fine since links are underscored, but wanted to double check with you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ohhh and icon, maybe plus symbol for new?

image

Copy link
Contributor

Choose a reason for hiding this comment

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

@colleenmcginnis I think it's fine since links are underscored, but wanted to double check with you!

I think /help pages have custom CSS that removed the underline 😬 but maybe we should change that for consistency anyway!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@colleenmcginnis yeah let's make sure /help underscores links since that's a best practice 🤠

Katy DeCorah added 3 commits January 2, 2020 19:48
* master:
  Update CHANGELOG.md
  Update CHANGELOG.md
  allow `feedbackSentryDsn` to accept string (url) or boolean (false)
  conditionally set `section` and `preferredLanguage`; send along `environment`
@katydecorah katydecorah merged commit ba92e65 into master Jan 3, 2020
@katydecorah katydecorah deleted the themes branch January 3, 2020 13:09
katydecorah pushed a commit that referenced this pull request Jan 3, 2020
* master:
  Create themes component to house shared themes for Tag and Note (#217)
katydecorah pushed a commit that referenced this pull request Jan 7, 2020
* master: (32 commits)
  add missing indices (#219)
  Create `Edit` and `CodeSnippet` components (#197)
  Update CHANGELOG.md
  Update CHANGELOG.md
  create highlight/theme-css
  Create themes component to house shared themes for Tag and Note (#217)
  Update CHANGELOG.md
  Update CHANGELOG.md
  Collapse grayed lines in code block (#206)
  Add a tag component with themes (#216)
  Add new related page component (#213)
  Rework Notes themes (#202)
  Add "tag" option to second and third level headings (#212)
  Update style of BetaFlag (#207)
  allow `feedbackSentryDsn` to accept string (url) or boolean (false)
  Add IE11 compatibility for the `Search` component (#203)
  conditionally set `section` and `preferredLanguage`; send along `environment`
  Prepare 0.24.0
  Add groovy highlight option (#201)
  Push text feedback to Sentry (#198)
  ...
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