Skip to content

Badge component #72

Closed
Closed

Description

@lshig

The Account Dashboard has a very simple Badge component to label features as Beta or Coming soon. I propose we move this component here and be design opinionated on padding, coloring, and font size. It will take in a text prop and margins will be left up to a wrapper or sibling elements around it.

screen shot 2019-02-14 at 11 43 43 am

screen shot 2019-02-14 at 11 44 06 am

screen shot 2019-02-14 at 11 45 06 am

Would love feedback on use cases and color themes! cc: @angel @mapbox/docs @mapbox/studio

Activity

  1. self-assigned this
    on Feb 14, 2019
  2. HeyStenson commented on Feb 14, 2019

    @HeyStenson

    Exciting @lshig! I definitely agree that this would be a good addition to mr-ui.

    From a docs perspective, some potential use cases I can think of right now are:

    • APIs that are in public beta
    • API features that are public beta
    • SDK features that are in public beta
    • SDK features that are only available to certain customer types (for ex. only Enterprise customers can use Offline routing for the iOS and Android Navigation SDKs)
    • Tutorials that cover products that are only available if they've been purchased (ex. Enterprise boundaries-related tutorials)
  3. tristen commented on Feb 28, 2019

    @tristen
    Member

    If it's just a stylistic treatment, could this be a style util instead?

  4. lshig commented on Feb 28, 2019

    @lshig
    ContributorAuthor

    Oops I should've updated this. We're also adding an optional Tooltip wrapper around this Badge component. This will be used in the Account Dashboard and our documentation sites.

    screen shot 2019-02-28 at 12 26 28 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions