Skip to content

Commit c32e356

Browse files
authored
Merge pull request #290 from rhamilto/issue-2716
Prohibit horizontal resizing of textarea inside origin-modal-popup
2 parents 56c7a9d + b40803c commit c32e356

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

dist/less/_modal-popup.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
margin-top: 0;
8787
padding: 10px @grid-gutter-width 10px (@grid-gutter-width / 2);
8888
}
89+
90+
textarea {
91+
resize: vertical; // so the textarea cannot be resized wider than the popup
92+
}
8993
}
9094

9195
.origin-modal-popup-backdrop.modal-backdrop {

dist/origin-web-common.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ div.hopscotch-bubble .hopscotch-nav-button.prev {
415415
margin-top: 0;
416416
padding: 10px 40px 10px 20px;
417417
}
418+
.origin-modal-popup textarea {
419+
resize: vertical;
420+
}
418421
.origin-modal-popup-backdrop.modal-backdrop {
419422
background-color: transparent;
420423
cursor: not-allowed;

src/styles/_modal-popup.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
margin-top: 0;
8787
padding: 10px @grid-gutter-width 10px (@grid-gutter-width / 2);
8888
}
89+
90+
textarea {
91+
resize: vertical; // so the textarea cannot be resized wider than the popup
92+
}
8993
}
9094

9195
.origin-modal-popup-backdrop.modal-backdrop {

0 commit comments

Comments
 (0)