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

feat(component): implement FeatureTag component #1567

Merged
merged 11 commits into from
Jan 29, 2025
Merged

Conversation

davelinke
Copy link
Contributor

@davelinke davelinke commented Oct 16, 2024

What?

Introducing the FeatureTag component

Why?

The feature tag component is a stylized badge interface element that describes categories of a particular application or feature within the BC properties.

Screenshots/Screen Recordings

Figma

Screenshot 2024-12-13 at 3 09 31 PM

Screenshot 2024-12-27 at 2 40 19 PM

Prototype

Screenshot 2024-12-27 at 2 39 24 PM

Testing/Proof

dev.tsx code
import { FeatureTag, Flex, Grid, FlexItem, FeatureSet, H2 } from '@bigcommerce/big-design';
import { AutoAwesomeIcon } from '@bigcommerce/big-design-icons';
import React, { FunctionComponent } from 'react';

const PageFeatureTag: FunctionComponent = () => {
  return (
    <Flex flexDirection="column" flexGap="1rem" padding="large">
      <H2>Feature set</H2>
      <FlexItem>
        <FeatureSet
          features={[
            { label: 'Feature 1', icon: <AutoAwesomeIcon /> },
            { label: 'Feature 2', icon: <AutoAwesomeIcon /> },
            { label: 'Feature 3', icon: <AutoAwesomeIcon /> },
          ]}
        ></FeatureSet>
      </FlexItem>
      <FlexItem>
        <Grid gridColumns={'100px'}>
        <FeatureSet
          features={[
            { label: 'A really long text', icon: <AutoAwesomeIcon /> },
            { label: 'A really long text', icon: <AutoAwesomeIcon /> },
            { label: 'A really long text', icon: <AutoAwesomeIcon /> },
          ]}
        ></FeatureSet>
        </Grid>
      </FlexItem>
      <H2>Feature tag</H2>
      <FeatureTag icon={<AutoAwesomeIcon />} label="Woot" />
      <FeatureTag icon={<AutoAwesomeIcon />} label="BigCommerce" />
      <FeatureTag icon={<AutoAwesomeIcon />} label="BigCommerce" marginBottom={'xLarge'} />
      <Grid gridColumns="100px">
        <FeatureTag
          icon={<AutoAwesomeIcon />}
          label="A really long text"
          title="A really long text"
        />
      </Grid>
    </Flex>
  );
};

export default PageFeatureTag;

Copy link

changeset-bot bot commented Oct 16, 2024

🦋 Changeset detected

Latest commit: 5c28e6f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@bigcommerce/big-design Minor
@bigcommerce/docs Minor
@bigcommerce/big-design-patterns Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davelinke davelinke changed the title feat(components): implement FeatureTag component feat(component): implement FeatureTag component Oct 16, 2024
@chanceaclark
Copy link
Contributor

Before you convert this from draft to regular PR make sure to add documentation.

@davelinke davelinke marked this pull request as ready for review December 30, 2024 16:17
@davelinke davelinke requested review from a team as code owners December 30, 2024 16:17
@davelinke davelinke force-pushed the feat/feature-tag branch 3 times, most recently from 02d09dd to 6897e74 Compare January 9, 2025 14:06
Copy link

@becomevocal becomevocal left a comment

Choose a reason for hiding this comment

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

This follows all our best practices so I'm a 👍

@davelinke davelinke merged commit 5e0589f into main Jan 29, 2025
10 checks passed
@davelinke davelinke deleted the feat/feature-tag branch January 29, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants