Skip to content

Conversation

@AfonsoFaleiro
Copy link

Closes: #2653
Issue:
dcc.Dropdown has inconsistent layout flow
compared to other common input components.

Changes:
render() of dcc.Dropdown and Dropdown.css styled with display set to inline-block.

Contributor Checklist

  • I have broken down my PR scope into the following TODO tasks
  • I have run the tests locally and they passed. (refer to testing section in contributing)

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 gvwilson self-assigned this Jul 25, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added the feature something new label Aug 13, 2024
@gvwilson gvwilson changed the title Fix #2653: unexpected behaviour of Dropdown fix unexpected behaviour of Dropdown Aug 13, 2024
@gvwilson gvwilson added P2 considered for next cycle fix fixes something broken community community contribution and removed feature something new labels Aug 13, 2024
import PropTypes from 'prop-types';
import React, {Component, lazy, Suspense} from 'react';
import dropdown from '../utils/LazyLoader/dropdown';
import './css/Dropdown.css';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is already imported here:

import '../components/css/Dropdown.css';

className={`dash-dropdown ${className || ''}`}
styles={{
control: (provided) => ({
...provided,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided should be at the end to possibly overload the defaults.

@gvwilson
Copy link
Contributor

@T4rk1n @emilykl any updates on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community community contribution fix fixes something broken P2 considered for next cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dcc.Dropdown has inconsistent layout flow with other common input components

3 participants