Skip to content

Conversation

@rossedfort
Copy link
Contributor

@rossedfort rossedfort commented Aug 19, 2025

Description & motivation 💭

  • Adds Go, TypeScript, Python, PHP, Java, .NET and Ruby language support to codeblock
  • Adds Stories for each of the new languages with applicable code snippets
  • Adds optional Tabs to codeblock
  • fix Link icon
before after
Screenshot 2025-08-26 at 10 10 14 AM Screenshot 2025-08-26 at 10 20 43 AM

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

@rossedfort rossedfort requested a review from a team as a code owner August 19, 2025 17:10
@rossedfort rossedfort requested review from rossnelson and removed request for a team August 19, 2025 17:10
@vercel
Copy link

vercel bot commented Aug 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
holocene Ready Ready Preview Comment Aug 26, 2025 4:22pm

@Alex-Tideman
Copy link
Collaborator

You sure this passes accessibility?

Screenshot 2025-08-19 at 3 45 14 PM

Copy link
Contributor

@andrewzamojc andrewzamojc left a comment

Choose a reason for hiding this comment

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

Cool looking tabbed ui. I left a comment that suggests a change. Let me know what you think.

bind:activeTab
content={hidden
? content[activeTab]
: content[activeTab].replace('***', 'secret')}
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment: Neat tabs. I like the simple interface.

{/if}
</div>
</div>
{/if}
Copy link
Contributor

@andrewzamojc andrewzamojc Aug 19, 2025

Choose a reason for hiding this comment

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

Possible change: Do the tabs and header actions play well with the maximizable and existing copy button? It seems kind of separate in the code and I can't quite do it in storybook. Ideally the tabs are maximizable too and the copy button isn't repeated.

Copy link
Contributor Author

@rossedfort rossedfort Aug 19, 2025

Choose a reason for hiding this comment

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

Good question, I didn't check on that behavior.

@rossedfort
Copy link
Contributor Author

You sure this passes accessibility?

Good call, I didn't check

- don't allow maximizable when tabs are used
- switch string text back to primary
@rossedfort rossedfort merged commit 25a279d into main Aug 26, 2025
15 checks passed
@rossedfort rossedfort deleted the DT-3233-add-langs-to-codeblock branch August 26, 2025 19:43
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.

4 participants