Skip to content

Option to remove "option" from modal elements of suggester #561

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

Open
3 tasks done
holroy opened this issue Apr 13, 2025 · 1 comment
Open
3 tasks done

Option to remove "option" from modal elements of suggester #561

holroy opened this issue Apr 13, 2025 · 1 comment
Labels
feature request New feature or request

Comments

@holroy
Copy link

holroy commented Apr 13, 2025

Please fill out these Check-boxes

  • I checked for existing similar feature requests
  • I have read the docs and checked that the feature I am requesting is not already implemented
  • My feature request consists of only one feature

Is your Feature Request related to a Problem or Annoyance?

I recently started using the INPUT[suggester], and when I populate the options using either option('a') or option('b', 'path/b') the description field of the modal has the value option which is kind of useless.

So I'd like to have a method to remove this unneeded, or to make it useful somehow. Doing class() only affects the actual input field, and not the modal.

Example showcasing this behavior:

testing: `INPUT[suggester(option('a'), option('path/b', 'b')):hi]`

Which displays as:

Image

Describe the Feature you'd like

Either of the following options would be nice:

  • Some way to change the option() to also set the description field
  • For class() to also be applied to the modal
  • Possibly a flag to just not display the description field of the modal

Alternatives

Tried the class() variant, looked at the DOM finding nothing to anchor to. Tried the various variants of option() I could think of.

Additional Context

No response

@holroy holroy added the feature request New feature or request label Apr 13, 2025
@mProjectsCode
Copy link
Owner

For now you should be able to do:

.mb-search-modal-element-description {
    display: none;
}

I have plans to rework how the general option and optionQuery system works, but I am waiting to see how dynamic views pan out for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants