Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Update help text for preferences items
  • Loading branch information
andrewserong committed Dec 14, 2023
commit 452376760e91e594a877428b9de1a1b30e7c9e56
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default function EditPostPreferencesModal() {
<EnableFeature
featureName="allowRightClickOverrides"
help={ __(
'Allows contextual menus via right-click, overriding browser defaults.'
'Allows contextual list view menus via right-click, overriding browser defaults.'
) }
label={ __(
'Allow right-click contextual menus'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function EditSitePreferencesModal() {
<EnableFeature
featureName="allowRightClickOverrides"
Copy link
Member

Choose a reason for hiding this comment

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

To me, enableListViewRightClick or allowListViewContextualMenus or the equivalent specific descriptor might describe the feature. allowRightClickOverrides might be too generic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question! My thinking was to keep it generic so that if we wish to expand other areas to also have right click overrides, we don't wind up with a proliferation of allowRightClick settings in the preferences 🤔

help={ __(
'Allows contextual menus via right-click, overriding browser defaults.'
'Allows contextual list view menus via right-click, overriding browser defaults.'
) }
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to communicate that it's specific to the List view here? I don't think it has effect anywhere else in the editor (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, for the user facing help text, that's a great idea! Perhaps Allows contextual list view menus via right-click... or something like that.

label={ __( 'Allow right-click contextual menus' ) }
/>
Expand Down