Skip to content
New issue

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

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

Already on GitHub? # to your account

Heading #450

Closed
10 tasks
Ibabalola opened this issue Mar 25, 2023 · 1 comment · Fixed by #482
Closed
10 tasks

Heading #450

Ibabalola opened this issue Mar 25, 2023 · 1 comment · Fixed by #482
Assignees
Labels
new component new component typography Create components for typography e.g. title
Milestone

Comments

@Ibabalola
Copy link
Contributor

Ibabalola commented Mar 25, 2023

As a developer
I want to be able use a Heading component
so that I can easily add a title

The component should contain:

  • Embedded className called dcx-heading dcx-heading-${level}
  • Relevant classes for shared / reusable styling
  • Add the ability to specify other props (...props)
  • Add prop called label to display the content of title
  • Add prop called level to denote the tag that should be used, from h1 to h6

The final user will use in this way:

<Heading className="title" label="title text" id="user-defined-id" level="1" />

Tasks:

  • Add unit tests
  • Add Application code with commented props
  • Add Demo use of component
  • Add to storybook documentation file with examples (.mdx) in a section called Typography
  • Add to live demo

Please follow the below to create your branch

git checkout release/0.8
git pull
git checkout -b 'feature/heading'
@Ibabalola Ibabalola added the typography Create components for typography e.g. title label Mar 25, 2023
@daniele-zurico daniele-zurico added the new component new component label Mar 27, 2023
@Ibabalola Ibabalola changed the title Title Heading Mar 30, 2023
@daniele-zurico daniele-zurico added this to the 0.8 milestone Mar 30, 2023
@aismaelcap aismaelcap self-assigned this May 5, 2023
@daniele-zurico
Copy link
Contributor

Closed by #482

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
new component new component typography Create components for typography e.g. title
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants