Skip to content

_input_group.scss fails to compile without _forms.scss #26209

@alecho

Description

@alecho

Error when not importing scss/_forms.scss but importing scss/_input_group.scss.

I was under the impression that we could create custom builds by importing the necessary modules "a la carte". Having one depend on the other is a little unexpected.

Error: ".input-group-lg > .form-control" failed to @extend ".form-control-lg".
       The selector ".form-control-lg" was not found.
       Use "@extend .form-control-lg !optional" if the extend should be able to fail.
        on line 124 of node_modules/bootstrap/scss/_input-group.scss
>>   @extend .form-control-lg;
   ----------^

@extend .form-control-lg;

Happy to open a PR if the suggested fix of appending !optional is indeed correct.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions