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

Ability to add items to the options menu modal #25585

Open
NicktheGeek opened this issue Sep 23, 2020 · 1 comment
Open

Ability to add items to the options menu modal #25585

NicktheGeek opened this issue Sep 23, 2020 · 1 comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Type] New API New API to be used by plugin developers or package users.

Comments

@NicktheGeek
Copy link

Is your feature request related to a problem? Please describe.
I am attempting to add a single option for a plugin. The plugin adds a screen reader only text format. The idea is to hide the screen reader text when an element is not in focus so users get a better idea of what the content will look like. However it was requested to make the text visible all the time. I think this is really an option that should be available, so I was trying to add it to the options modal, but cannot.
https://github.com/WordPress/gutenberg/blob/e703aee273ab34477d40044f5f3160d7009e0e39/packages/edit-post/src/components/options-modal/index.js

Describe the solution you'd like
Ideally it would be possible to register options for different sections so that developers could include additional options there.

Describe alternatives you've considered
Since I cannot add an option, I'm adding a plugin sidebar that will use a toggle control and save data to an option field, allowing users to turn the feature on and off. It will work, but not my first choice.

@ZebulanStanphill ZebulanStanphill added [Feature] Extensibility The ability to extend blocks or the editing experience [Type] New API New API to be used by plugin developers or package users. labels Sep 23, 2020
@ZebulanStanphill
Copy link
Member

I think in general, it would be a great idea to allow plugins to add their own options to the Options modal. The only issue I see with implementing it right now is that the Options modal probably needs some design alterations to make it scale better with a large number of options.

See also: #24965.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Type] New API New API to be used by plugin developers or package users.
Projects
None yet
Development

No branches or pull requests

2 participants