Skip to content

Prohibit horizontal resizing of textarea inside origin-modal-popup #290

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

Merged
merged 1 commit into from
Jan 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dist/less/_modal-popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
margin-top: 0;
padding: 10px @grid-gutter-width 10px (@grid-gutter-width / 2);
}

textarea {
resize: vertical; // so the textarea cannot be resized wider than the popup
}
}

.origin-modal-popup-backdrop.modal-backdrop {
Expand Down
3 changes: 3 additions & 0 deletions dist/origin-web-common.css
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ div.hopscotch-bubble .hopscotch-nav-button.prev {
margin-top: 0;
padding: 10px 40px 10px 20px;
}
.origin-modal-popup textarea {
resize: vertical;
}
.origin-modal-popup-backdrop.modal-backdrop {
background-color: transparent;
cursor: not-allowed;
Expand Down
4 changes: 4 additions & 0 deletions src/styles/_modal-popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
margin-top: 0;
padding: 10px @grid-gutter-width 10px (@grid-gutter-width / 2);
}

textarea {
resize: vertical; // so the textarea cannot be resized wider than the popup
}
}

.origin-modal-popup-backdrop.modal-backdrop {
Expand Down