USACE / USACE/groundwork

className on every Groundwork component

Open
#154 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Should we make sure to expose a className on every groundwork component so users can override things like width/height of the components as needed?

example:

TextInput does not provide a className prop

https://usace.github.io/groundwork/#/docs/buttons/generic-buttons

If a user wanted to make the width w-1/12 it would be ignored unless they wrapped it in div tags/some other thing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the TextInput component mentioned in the issue and inspect the components documented at the linked generic-buttons page. Check which components currently expose or apply className, then verify that a user-supplied width such as w-1/12 is honored. Done means every Groundwork component supports className overrides consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.