Skip to content

Commit

Permalink
Merge pull request #2038 from tf/text-aria-input-outside-editor
Browse files Browse the repository at this point in the history
Improve `TextAreaInputView` for usage outside editor
  • Loading branch information
tf authored Dec 14, 2023
2 parents dd3a844 + d929022 commit 4494d5a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/assets/stylesheets/pageflow/editor/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
@import "./info_box";
@import "./text_tracks";
@import "./static_thumbnails";
@import "./wysihtml5";
@import "./notifications";
@import "./publish_entry";
@import "./other_entry_item";
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/pageflow/ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@

@import "./ui/input/extended_select_input";
@import "./ui/input/check_box_group_input";
@import "./ui/input/text_area_input";
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.toolbar {
.text_area_input .toolbar {
margin-left: -2px;
margin-top: 3px;
position: relative;
Expand Down Expand Up @@ -174,4 +174,16 @@
border-bottom: solid 9px var(--ui-surface-color);
border-left: solid 9px transparent;
}

// Hide inline help text that only makes sense when editing a
// Pageflow entry outside the editor
.open_in_new_tab_section .inline_help {
display: none;
}
}

.editor .text_area_input {
.open_in_new_tab_section .inline_help {
display: block;
}
}
1 change: 1 addition & 0 deletions package/src/ui/views/inputs/TextAreaInputView.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const TextAreaInputView = Marionette.ItemView.extend({
mixins: [inputView, inputWithPlaceholderText],

template,
className: 'text_area_input',

ui: {
input: 'textarea',
Expand Down

0 comments on commit 4494d5a

Please sign in to comment.