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

Rework Notes themes - #202

Merged
katydecorah merged 8 commits into
masterfrom
notes
Dec 20, 2019
Merged

katydecorah merged 8 commits into
masterfrom
notes

Conversation

@katydecorah

@katydecorah katydecorah commented Dec 13, 2019 •

Copy link
Copy Markdown
Contributor

This PR will rework themes by removing the imageComponent and building the image with the theme. This PR also:

  • removes new-image, warning-image - since they are already Assembly icons, we can remove this components and create an embedded component to handle the styling
  • maps together similar themes

Proposed theme set:

  • 💙Default
  • 🧡Warning, Legacy (these notes already use the same theme so both themes will return the same style)
  • ❤️Error
  • 💜Download
  • 💚Beta, New (these notes already use the same theme so both themes will return the same style)

To do:

  • option for no image
  • finish auditing notes used across mapbox.com to make sure we've covered all use cases.

fixes #175

@katydecorah katydecorah changed the title 🚧Rework Notes to have themes 🚧Rework Notes themes Dec 13, 2019
@katydecorah katydecorah changed the title 🚧Rework Notes themes Rework Notes themes Dec 20, 2019

@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.

Looks great @katydecorah! I left a couple very optional suggestions/questions below.

Comment thread src/components/note/note.js Outdated
import React from 'react';
import PropTypes from 'prop-types';

import BookImage from '../book-image/book-image';

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.

What do you think about using the book icon from Assembly here instead? I do like the lil book image, but I also like consistency!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added!

image

Comment thread src/components/note/note.js Outdated

Note.defaultProps = {
theme: 'default',
title: 'Note',

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.

What do you think about different default titles for the different themes? Is that unnecessarily complicated? For example Public Beta for beta and Download for download.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Super smart! Done!

image

Katy DeCorah and others added 5 commits December 20, 2019 12:28
* master:
  Add "tag" option to second and third level headings (#212)
  Update style of BetaFlag (#207)
  Add IE11 compatibility for the `Search` component (#203)
  Prepare 0.24.0
  Add groovy highlight option (#201)
  Push text feedback to Sentry (#198)
Co-Authored-By: Colleen McGinnis <[email protected]>
@katydecorah
katydecorah merged commit de4c3f1 into master Dec 20, 2019
@katydecorah
katydecorah deleted the notes branch December 20, 2019 19:16
katydecorah pushed a commit that referenced this pull request Dec 20, 2019
* master:
  Rework Notes themes (#202)
katydecorah pushed a commit that referenced this pull request Jan 2, 2020
* master:
  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)
  Add IE11 compatibility for the `Search` component (#203)
katydecorah pushed a commit that referenced this pull request Jan 3, 2020
* master:
  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)
  Prepare 0.23.0
  Allow for a configurable connector on search component (#200)
  Update budo
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.

Rethink how we're theming Notes

2 participants