Skip to content

fix: workspace toolbar and header responsiveness#955

Merged
davidmenendez merged 7 commits intocarbon-design-system:mainfrom
davidmenendez:issue-890
Mar 4, 2026
Merged

fix: workspace toolbar and header responsiveness#955
davidmenendez merged 7 commits intocarbon-design-system:mainfrom
davidmenendez:issue-890

Conversation

@davidmenendez
Copy link
Contributor

Closes #890

makes some changes to the workspace for better responsive handling

Changelog

New

  • added the c4p-truncated-text component into the header for better title truncation
  • added the details and summary elements to the header to allow for an expanded and collapsed state
  • added workspace-header-toggle event in the details toggle to allow for specific structuring of header and body components in the expanded and collapsed state. refer to the figma for more details
  • made adjustments to the 3 button variant to prevent the buttons from stacking. just not enough vertical space to go around!

Testing / Reviewing

manual testing. wanted to get feedback before adding additional unit tests.

@davidmenendez davidmenendez requested a review from a team as a code owner February 17, 2026 21:22
@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for carbon-ai-chat-demo ready!

Name Link
🔨 Latest commit da708e4
🔍 Latest deploy log https://app.netlify.com/projects/carbon-ai-chat-demo/deploys/69a75e7e06bb51000882bb70
😎 Deploy Preview https://deploy-preview-955--carbon-ai-chat-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for ai-chat-components-react ready!

Name Link
🔨 Latest commit da708e4
🔍 Latest deploy log https://app.netlify.com/projects/ai-chat-components-react/deploys/69a75e7e2c13c30008271a36
😎 Deploy Preview https://deploy-preview-955--ai-chat-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for carbon-ai-chat-components ready!

Name Link
🔨 Latest commit da708e4
🔍 Latest deploy log https://app.netlify.com/projects/carbon-ai-chat-components/deploys/69a75e7eb0e0960008b5f07a
😎 Deploy Preview https://deploy-preview-955--carbon-ai-chat-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

"react": ">=17.0.0 <20.0.0"
},
"dependencies": {
"@carbon/ibm-products-web-components": "^0.32.0",
Copy link
Member

Choose a reason for hiding this comment

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

Hmm I think we were a bit hesitant to add the ibm products package, but it's looking like we'll need to utilize more and more components and utilities from there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah i get that. i was hoping in thie PR i'd also be able to utilize options-tile. i had forgotten that the overflow handler that was originally built in c4p was added to core utilities, so that was already being used. if it's not a dependency we want to add i'm sure i can port over the truncated-text functionality and then maybe work to getting that util put in core. seems like a pretty standard utility, so i'm sure it could have wider impact there than in products 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah lets port it over rather than bringing in all of ibm products.

Could also consider if its a util the belongs in core?

Oh... you said that too lol

I'm down with porting for now and then making an issue to add to core later to make it speedier.

@ethanwinters ethanwinters mentioned this pull request Feb 23, 2026
9 tasks
@davidmenendez
Copy link
Contributor Author

@ethanwinters @annawen1 ported over the truncated-text component to eliminate the carbon products dependency

@annawen1
Copy link
Member

Noticed this minor horizontal scrollbar appearing on the React float version
Screenshot 2026-02-25 at 1 00 55 PM

And in Web Components, this is happening 😬
https://github.com/user-attachments/assets/155f5cc2-5dc8-49e3-ad29-78080a76ceb5

@davidmenendez
Copy link
Contributor Author

davidmenendez commented Feb 26, 2026

@ethanwinters ethanwinters mentioned this pull request Mar 3, 2026
9 tasks
@davidmenendez
Copy link
Contributor Author

@annawen1 @ethanwinters merged the latest main in with the scrolling body fix and added final touches to adjust spacing in the header detail dropdown area to align with the original implementation.

Screenshot 2026-03-03 at 4 17 03 PM

@annawen1
Copy link
Member

annawen1 commented Mar 4, 2026

Screenshot 2026-03-04 at 11 38 39 AM

I'm still seeing the horizontal scrollbar appear on float mode, but it's a minor bug so I'll go ahead and approve so I'm not blocking the other issues.

@davidmenendez davidmenendez added this pull request to the merge queue Mar 4, 2026
Merged via the queue into carbon-design-system:main with commit 8cac067 Mar 4, 2026
19 checks passed
@davidmenendez davidmenendez deleted the issue-890 branch March 4, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better workspace shell responsive handling

3 participants