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

Improve textarea behaviour #2464

Merged
merged 2 commits into from Dec 22, 2019
Merged

Improve textarea behaviour #2464

merged 2 commits into from Dec 22, 2019

Conversation

hikemaniac
Copy link
Contributor

@hikemaniac hikemaniac commented Dec 16, 2019

This PR adds the resize: vertical CSS property to comment textareas to fix a problem, where they could be dragged beyond the sidebar.
Furthermore, I've added a min-height to all textareas to not let them be too small to enable the display of a scrolling bar.
I've also added a border-radius to form fields, to make them more consistent with what we do with buttons and tables.

Copy link
Collaborator

@gravitystorm gravitystorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hikemaniac! I'm happy with these changes, because:

  • The resize: vertical is the default for bootstrap resets, so if they think it's reasonable that's fine with me.
  • The border-radius also matches what bootstrap do to text-areas.
  • I don't have strong opinions on the min-height aspect of this PR so I'm happy to approve it.

I should note that the border-radius will also be applied to much more than just text-areas, which isn't clear from your description. For example, you can see it on the input fields on the sign in form. However, I think it looks fine there too so I'm happy to do this, after the other requested changes are resolved.

app/assets/stylesheets/common.scss Show resolved Hide resolved
app/assets/stylesheets/common.scss Show resolved Hide resolved
@gravitystorm gravitystorm merged commit 281d799 into openstreetmap:master Dec 22, 2019
@hikemaniac hikemaniac deleted the fix-comment-textarea branch December 22, 2019 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants