-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature Request]: Responsive Data Table Description Widths #11360
Comments
Thanks for bringing this up @KevinCamelo! Theres lots of ways to cap line length. A It would be good to analyze Plex renderings at that weight and size to determine a good @carbon-design-system/design do you have some opinions on if we should just shoot for <=80 characters on all breakpoints, or would it be best to change the max per breakpoint? |
@tay1orjones We can adjust these if they need to be tweaked after it gets up in a PR.
|
Thank you for helping get this through @laurenmrice @tay1orjones! |
Summary
Currently, the description within the data table header wraps the full width of the data table container. The data table description should responsively resize to provide a comfortable line-length.
Justification
In design reviews on Cloud, we often ask teams teams for text to not take up more than 50% of the container width. However, the implementation of this suggestion can be troublesome especially as tables get narrower on smaller viewports.
Since each developer may implement comfortable line lengths in different ways (line breaks, changing the max-width via CSS overrides), this can cause style discrepancies across our series of products. It would be great for the base carbon component to have responsive widths for data table descriptions.
Desired UX and success metrics
As noted in the IBM Design Language website, comfortable reading suggests a line length between 32 and 80 characters.
Thus, the data table description should:
Required functionality
Specific timeline issues / requests
This is not a pressing issue, however; it would be great for official guidance to be made regarding line lengths in the data table description.
If this enhancement makes it through to the coded component, this would ensure consistency in our data table description line lengths across IBM.
Available extra resources
https://ibm-cloudplatform.slack.com/archives/C0M053VPT/p1651859062603919
Code of Conduct
The text was updated successfully, but these errors were encountered: