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

[MIRROR] Converts button to typescript #1123

Merged
merged 1 commit into from
Dec 16, 2023
Merged

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#25625
Original PR: tgstation/tgstation#80194

About The Pull Request

Converts one of our most used components into TypeScript. Fixes an issue with it where ellipses were not working.

This is tricky though. Some people are using ellipsis prop but passing in full nodes. Tgui is not smart enough to handle this - it only works on strings! You will need to custom write the style if you're trying this. I've wrote up documentation in the component and a restrictive type that will warn anyone trying to concatenate a node.

Why It's Good For The Game

Closes #78220

Changelog

N/A nothing player facing

* Converts button to typescript (#80194)

## About The Pull Request
Converts one of our most used components into TypeScript. Fixes an issue
with it where ellipses were not working.

This is tricky though. Some people are using ellipsis prop but passing
in full nodes. Tgui is not smart enough to handle this - it only works
on strings! You will need to custom write the style if you're trying
this. I've wrote up documentation in the component and a restrictive
type that will warn anyone trying to concatenate a node.
## Why It's Good For The Game
Closes #78220
## Changelog
N/A nothing player facing

* Converts button to typescript

---------

Co-authored-by: Jeremiah <[email protected]>
@Iajret Iajret merged commit 1dd3d2f into master Dec 16, 2023
23 checks passed
@Iajret Iajret deleted the upstream-mirror-25625 branch December 16, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants