P5.js-web-editor: Negative Font Size

Created on 11 Sep 2018  路  12Comments  路  Source: processing/p5.js-web-editor

Nature of issue?

  • [x] Found a bug
  • [ ] Existing feature enhancement
  • [ ] New feature request
  • Web browser and version: Firefox 62.0 (64-bit)
  • Operating System: Linux (Solus)
  • Steps to reproduce this: Go to website and decrees font size

Details about the bug:

Recently I found that editor font size can be negative

good first issue help wanted high bug

All 12 comments

Thanks for reporting! We probably shouldn't allow that, should we 馃槃 It probably makes sense to have some lower limit like 8px or something, and also an upper limit.

This issue can be closed right?

@bhawesh96 No , I just started working on it but if you want you can work on it

@Janglee123 Alright, I'll do it.

How should the behaviour be? Should the buttons be disabled upon reaching the extreme limits?
Need to handle the case when one enters a font size less than the minimum limit directly into the <input> field.

Can you make it disappeared at limits ? You can ask it to @catarak

IMO, making it disappear won't be a nice UX.

@bhawesh96 i agree, i don't think making the buttons disappear is a nice UX! i think what should happen is that once a user has the minimum/maximum size selected, then clicking the -/+ buttons won't do anything. you could disable the buttons (only the - button for minimum value, only the + button for maximum value) too.

i also noticed that you can set the indentation amount to negative values too. maybe it would be good to also give this a smart minimum and maximum value? like 0-6? i think it makes sense to fix this as part of this ticket.

Disabling the buttons do not make the button _look_ disabled as onHover CSS remains. Hence, as a user, I might just keep clicking the button since I'm not being notified about the minimum / maximum value.

we could add a disabled style!

@catarak This issue can be closed.

@bhawesh96 thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

catarak picture catarak  路  5Comments

aldrinjenson picture aldrinjenson  路  4Comments

jeremydouglass picture jeremydouglass  路  4Comments

slowizzm picture slowizzm  路  4Comments

meiamsome picture meiamsome  路  4Comments