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

Add: Shortcuts to increase/decrease font size of text in textarea #28

Closed
minthemiddle opened this issue Sep 16, 2024 · 4 comments
Closed
Labels
enhancement New feature or request

Comments

@minthemiddle
Copy link
Owner

To have shortcuts to increase (cmd+) and decrease (cmd-) font size of the input text.

@minthemiddle
Copy link
Owner Author

I'm currently experimenting with solving this via class swapping, e.g. adding text-lg > text-xl.
Challenges with this:

  • As these classes are swapped via JS, Tailwind's build does not include them when minimizing
  • Which classes to add? All of them?

@minthemiddle
Copy link
Owner Author

Also, should this setting persist or be transient only?

@minthemiddle minthemiddle added the enhancement New feature or request label Sep 16, 2024
@minthemiddle
Copy link
Owner Author

WIP

image

minthemiddle added a commit that referenced this issue Sep 19, 2024
@minthemiddle
Copy link
Owner Author

It's having a list of font sizes that are being swapped when hitting plus and minus.

const fontSizes = ['text-xs', 'text-sm', 'text-base', 'text-lg', 'text-xl', 'text-2xl', 'text-3xl'];

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

No branches or pull requests

1 participant