Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badge Component #130

Closed
Tracked by #64
DamlaDemir opened this issue Jun 23, 2022 · 0 comments · Fixed by #131
Closed
Tracked by #64

Badge Component #130

DamlaDemir opened this issue Jun 23, 2022 · 0 comments · Fixed by #131
Assignees
Milestone

Comments

@DamlaDemir
Copy link
Contributor

DamlaDemir commented Jun 23, 2022

Design

Figma Design Document

Implementation

General usage example:

<bl-badge>In Progress</bl-badge>

Rules

  • Icon can only be used on Large and Medium badges.
  • There are no specific variants for the badge but using our color palette for badge colors is suggested.

Usage Examples

Default background color is --bl-color-accent-primary-background and default color is --bl-color-primary. But any color can be set like this:

<style>
.danger-badge {
--bl-badge-bg-color:var(--bl-color-danger-background);
--bl-badge-color:var(--bl-color-danger);
}
</style>

<bl-badge class="danger-badge">Denied</bl-badge>

The icon can be set like this:

<bl-badge icon="waiting">In Progress</bl-badge>

The size can be set like this:

<bl-badge size="large">In Progress</bl-badge>

API Reference:

Attributes

Attribute Description Default Value
size (string) Size of badge(small,medium,large) medium
icon (string) Name of the icon that will be shown in badge -
This was referenced Jun 23, 2022
@muratcorlu muratcorlu added this to the v2.0 milestone Jun 28, 2022
@DamlaDemir DamlaDemir self-assigned this Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants