Skip to content
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

Inconsistent Width of FinalDropDown Fields Compared to FinalInputField #6238

Open
vasantvohra opened this issue Mar 18, 2024 · 1 comment
Open
Labels

Comments

@vasantvohra
Copy link
Contributor

vasantvohra commented Mar 18, 2024

Currently, there is an inconsistency in the width of FinalDropDown fields compared to FinalInputField elements. When utilizing FinalDropDown fields without explicitly specifying a style, they appear to have different widths than FinalInputField elements, leading to a lack of uniformity in the user interface.

import '../../../../indico/indico/modules/events/registration/client/styles/regform.module.scss';

const widthStyle = {
  width: '500px'
}

function RepresentationFormItem({as: InputComponent, title, required, ...inputProps}) {
  return (
    <div styleName="form-item">
      <div styleName="content">
        <Form.Field required={required} styleName="field">
          {title && <label>{title}</label>}
          <InputComponent required={required} {...inputProps} style={widthStyle}/>
        </Form.Field>
      </div>
    </div>
  );
}

image

@ThiefMaster
Copy link
Member

This seems to be limited to the registration form. In the Room Booking admin settings it's correct for example...

image

It's also correct for the SingleChoice dropdown. So I recommend checking the CSS and possibly adding the necessary styles on your side, unless it's something that's clearly a bug on our side and easy enough to fix w/o breaking the looks of the existing regform.

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

No branches or pull requests

2 participants