You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of the go-to Dash Core Components have the CSS style display set to inline-block, with a notable exception of dcc.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.
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:
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
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.
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
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: