-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
dcc.Dropdown has inconsistent layout flow with other common input components #2653
Comments
ned2
changed the title
[BUG] dcc.Dropdown has inconsistent styles with other common input components
[BUG] dcc.Dropdown has inconsistent layout flow with other common input components
Oct 5, 2023
AfonsoFaleiro
added a commit
to AfonsoFaleiro/dash
that referenced
this issue
Jul 24, 2024
dcc.Dropdown has inconsistent layout flow compared to other common input components. The layout bug is normalised with CSS style display set to inline-block.
2 tasks
gvwilson
changed the title
[BUG] dcc.Dropdown has inconsistent layout flow with other common input components
dcc.Dropdown has inconsistent layout flow with other common input components
Aug 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe your context
Describe the bug
Many of the go-to Dash Core Components have the CSS style
display
set toinline-block
, with a notable exception ofdcc.Dropdown
. This means that without any custom styles, the dropdown component has inconsistent layout flow compared to other input controls it's likely to be found with. I know I can style the component to fix the issue, but this seems like overkill for simple demos where you just need some controls next to each other, and would be confusing for people getting started with Dash.Here's an example:
Which gives the this layout:
This inconsistent flow layout that comes out of the box is too jarring, even for throwaway demo code, so I inevitably end up adding manual styling just for that one component to normalise things a bit:
I'm wondering if there would be any appetite for trying to normalise the layout flow for
dcc.Dropdown
? I know there's the impact on the many existing Dash apps out there to consider, but I do think it would make for a better experience, also for people getting started with Dash too.The text was updated successfully, but these errors were encountered: