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

Add optional prop for tags for first level items in NavigationAccordion - #115

Merged
colleenmcginnis merged 2 commits into
masterfrom
add-nav-tags
Feb 27, 2019
Merged

colleenmcginnis merged 2 commits into
masterfrom
add-nav-tags

Conversation

@colleenmcginnis

Copy link
Copy Markdown
Contributor

Related: https://github.com/mapbox/android-docs/pull/842

Adds an additional prop to NavigationAccordion for adding a tag to a first level item.

screen shot 2019-02-25 at 9 01 00 pm

@katydecorah

Copy link
Copy Markdown
Contributor

@colleenmcginnis I think we should create components for these tags as well to make sure they remain consistent. I can lend a hand, if needed!

We'll also want to make sure the color contrast passes since smaller text requires a higher contrast ratio.

Advanced

  • Updating to color-blue-dark bg-blue-faint is sufficient.
  • However in level-indicator advanced is red. Should we be consistent with that component? If so, updating to color-red-dark bg-red-faint is sufficient.

Fundamentals

  • Updating to color-pink-dark bg-pink-faint is sufficient.
  • What do you think about using green instead? We use green in level-indicator for "beginner". Updating to bg-green-faint and style={{color: "#1c7d50"}} would get us there.

@colleenmcginnis

Copy link
Copy Markdown
Contributor Author

I think we should create components for these tags as well to make sure they remain consistent.

Yes! However, I was holding off for two reasons:

@colleenmcginnis

Copy link
Copy Markdown
Contributor Author
  • However in level-indicator advanced is red. Should we be consistent with that component? If so, updating to color-red-dark bg-red-faint is sufficient.

The Advanced tag was totally hypothetical -- there's currently no use for it. I shouldn't have used a term that conflicted with the level-indicator tag. 🙈

  • What do you think about using green instead? We use green in level-indicator for "beginner". Updating to bg-green-faint and style={{color: "#1c7d50"}} would get us there.

The guides that I'm hoping to tag as fundamentals in https://github.com/mapbox/android-docs/pull/842 aren't really the equivalent of beginner. The purpose of the tag is more like... start here because 🗣 THIS IS IMPORTANT rather than because it's the simplest. I'm open to other words to replace fundamentals if you have any suggestions!

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

Thanks for the follow-ups! This looks good!

@colleenmcginnis
colleenmcginnis merged commit e6db14f into master Feb 27, 2019
@colleenmcginnis
colleenmcginnis deleted the add-nav-tags branch February 27, 2019 01:29
katydecorah pushed a commit that referenced this pull request Apr 17, 2019
* master: (22 commits)
  fixes bug in firefox where arrow was not vertically centered (#122)
  add swiftype attribute to ignore content blocks (#119)
  0.9.0
  Prepare 0.9.0
  Add BetaFlag component and options to add it to other components (#123)
  Prepare 0.8.1
  [patch] Use babel.config.js and updates build-package.js to output directories (#118)
  Prepare 0.8.0
  create versionSort function (#117)
  Prepare 0.7.0
  Add optional prop for tags for first level items in NavigationAccordion (#115)
  Prepare 0.6.0
  [docs-prose.css] make `.prose pre` rules more specific (#113)
  Add `mb24` to `OverviewHeader` (#112)
  [SectionedNavigation] filter the description if it's available (#111)
  Prepare 0.5.0
  Add warning and error themes to `Note` (#102)
  Add CSS to set max-height and style scrollbars for prose code examples (#103)
  [Card/CardContainer] Add new styles for fullwidth cards (#104)
  Add prism.css to create shared syntax styles used commonly across sites (#108)
  ...
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