carbon icon indicating copy to clipboard operation
carbon copied to clipboard

FlatTableHeader does not allow for content wrapping

Open johnb-sage opened this issue 10 months ago • 2 comments

Description

I'm using FlatTable and have some long header text that causes overflow at small viewports widths, such as 320px. Currently FlatTableHeader has white-space: nowrap so is not responsive.

Reproduction

https://stackblitz.com/edit/parsium-carbon-starter-rqdnyb?file=src%2FApp.tsx

Steps to reproduce

No response

JIRA ticket numbers (Sage only)

No response

Suggested solution

Ideally all components are responsive by default and we opt out of the native behaviour explicitly, so my preference is to remove the 'white-space: nowrap'.

Carbon version

128.3.1

Design tokens version

No response

Relevant browsers

Chrome

Relevant OSs

MacOS

Additional context

No response

Confidentiality

  • [X] I confirm there is no confidential or commercially sensitive information included.

johnb-sage avatar Apr 04 '24 13:04 johnb-sage