CenterForOpenScience / osf-style

Stylesheet and guidelines for OSF
https://centerforopenscience.github.io/osf-style/
Apache License 2.0
3 stars 26 forks source link

resizeable attribute for textarea #55

Open hellohaoyu opened 9 years ago

hellohaoyu commented 9 years ago

Current rule: textarea

Suggestion: In current rules, it seems to ask all the text-area DOMs to add noresize class. However, based on my personal experience, in most of user cases, user wouldn't need or think about resizing textarea.

So I suggest that the default setting for textarea should be non-resizeable.

 textarea {
    resize: none;
 }

And only set input field resizeable when it really needs. For example, user may input a long text in registration description.

caileyfitz commented 9 years ago

Copied from discussion on Trello card:

I do think that there should be a limit on how big a box can be. You can see from the Project Description picture (below) that the box can be expanded to be wider than the page. The box would expand forever if I continued to drag the box to the right, which does not seem ideal.

large_box

Is there a way to contain the size of the box, or is it that once the box is resizable, there are no constraints on box dimensions?