Skip to content
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

feat: GridTable header now supports a maximum of two lines of text. #800

Merged
merged 2 commits into from
Feb 2, 2023

Conversation

bdow
Copy link
Contributor

@bdow bdow commented Feb 2, 2023

No description provided.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #28525: GridTable Headers to support showing two lines of text.

@bdow bdow force-pushed the sc-28525/header-max-two-lines branch from df86404 to 2a1e931 Compare February 2, 2023 18:35
@@ -103,7 +103,9 @@ function memoizedTableStyles() {
emptyCell: "-",
firstRowMessageCss: Css.tc.py3.$,
headerCellCss: {
...Css.gray700.xsMd.bgGray200.aic.nowrap.pxPx(12).hPx(40).$,
// `unset`-ing the white-space: nowrap defined in `cellCss` below. Header's will add `lineClamp2` more locally in their renders.
// Not setting `lineClamp2` here as it sets `display: webkit-box`, which disables `align-items: center` (requires `display: flex/grid`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Maybe prefix both of these lines with just a contextual: "We want to support headers having two lines of wrapped text, and could add a lineClamp2 here, but ...what you have..."

Copy link
Contributor

@stephenh stephenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great story coverage!

@bdow bdow merged commit 850ed22 into main Feb 2, 2023
@bdow bdow deleted the sc-28525/header-max-two-lines branch February 2, 2023 18:45
homebound-team-bot pushed a commit that referenced this pull request Feb 2, 2023
## [2.242.0](v2.241.2...v2.242.0) (2023-02-02)

### Features

* GridTable header now supports a maximum of two lines of text. ([#800](#800)) ([850ed22](850ed22))
@homebound-team-bot
Copy link

🎉 This PR is included in version 2.242.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants