-
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
added superscript and subscript buttons in playground #1945
Conversation
Hi @animeshk874! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a problem with this - some others might have opinions on how the toolbar real estate should be used, so will let this bake for a little while and get some other eyes on it.
@@ -71,6 +71,14 @@ | |||
.PlaygroundEditorTheme__textUnderlineStrikethrough { | |||
text-decoration: underline line-through; | |||
} | |||
.PlaygroundEditorTheme__textSubscript { | |||
font-size: 12px; | |||
vertical-align: sub !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this necessary? I'm mostly just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just in case both sub
and sup
buttons are clicked, this will make sure that sub gets the priority. That's how it's handled here
Can these move into another dropdown or something? They're not common enough to use up so much space on mobile. |
Makes sense. Will do that! |
Sure thing. :) |
@trueadm Should I merge |
I’d maybe keep link separate but you could collapse the others. :) |
@animeshk874 I wonder if there is a better icon to use? The three dots don't come over as formatting things? It's a minor nit, but I think we should make the toolbar as awesome as possible! :) |
Hi @trueadm! I see the problem here. I will update the icon soon. I found this icon that I think makes more sense that the 3 dots. The problem with this is that it's used for |
I'd be fine with that, I think. We can always change it in the future. |
…nto sub-sup-playground
Have merged |
@acywatson Have fixed the failing test. It was happening because the |
@trueadm are you good with this? |
I think we can drop the "More" Text from the button, right? I mean "More" Doesn't really mean anything contextually, you could argue all the other dropdowns are also "More". |
I had kept it there for maintaining consistency as all the other dropdown buttons have a text. But if you think that would be confusing, then I can remove it. |
@trueadm have removed the |
Adds superscript and subscript buttons in the playground. This is an extension of this PR -> #1903