-
Notifications
You must be signed in to change notification settings - Fork 804
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
Forms: dropdown field visually different in editor & frontend #41079
Comments
I'm marking this as triaged on the One Board, but let PAs know if there's a need for any input from us. |
How would you suggest doing that? Front end using a native select is kind of a recent change and it makes sense to keep, but how could you edit that in the editor? Another option would be to have a |
Yep, I think this is intended behavior. The frontend, where the dropdown is expected to work like a dropdown, uses the browser rendering for select drop downs. The backend, where you need to add/edit the options in an interactive way, uses a specific implementation to allow that. I'm not sure if this entirely needs fixing, but if so, a preview button like @ntsekouras suggests seems like a good idea and is consistent with how the HTML block (which also look different between editor/frontend). Maybe you could also renders frontend-style when the block is not active, and then change to the interactive editable version when the block is active? |
I took a look at this and I think what we currently have make sense. The current UI in the editor is designed so that it is easier to edit. While the current UI on the front end it is designed to be easier to fill out (more accessible ) etc. Look almost the same when you don't have the field selected. @simison Can you provide a way to processed here. Or do you see us implementing the same drop down on the front-end. That uses to be the case but we went the other way around probably to increase accessibility. cc @monsieur-z for more insights on this. |
Let's leave this as-is now and revisit if we get feedback. I want us to keep the native select as default experience anyway, and the job would be to add "customizable" dropdowns but that's entirely different task. This might still come relevant with "write & edit" modes where we might need to decide what to show in the editor for each mode. |
Dropdown field in Forms shows "native" browser dropdown in the frontend, but in the editor we have custom dropdown:
Whichever way we go, we should stay consistent, and this should likely be user option.
The text was updated successfully, but these errors were encountered: