govuk-react / govuk-react/govuk-react

Add support for width overrides

Open
#558 5 comments 0 reactions 1 assignee Claimed by @stevesims View on GitHub
enhancement
Dominant language
TypeScript
Stars
458
Forks
89
PR merge metrics
No merged PRs in 30d

Description

GDS in govuk-frontend provides the ability to [set explicit widths on elements](https://design-system.service.gov.uk/styles/spacing/#width-override-classes). Their example should form input elements of specific widths, and the use of width override classes is advices on the [table component documentation](https://design-system.service.gov.uk/components/table/) to set table column widths.

We do not currently provide a mechanism to support width overrides.

It's suggested that width overrides could be supported in a similar manner to the `withWhiteSpace` styling function.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.