8000 Can't give a custom class to a modal element (to change its width) · Issue #560 · react-bootstrap/react-bootstrap · GitHub
[go: up one dir, main page]

Skip to content
Can't give a custom class to a modal element (to change its width) #560
Closed
@AndrewRayCode

Description

@AndrewRayCode

See this line: https://github.com/react-bootstrap/react-bootstrap/blob/master/src/Modal.js#L58

The className of a modal is hard coded to "modal-dialog". I need to change this specific modal's width, so I'd like to give it a custom class. Passing in className puts the className on the element inside the modal, which is frustrating.

I could give the parent element a custom class and then use a nested selector to match it, but that's not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0