Skip to content

input-group-addon replaced by input-group-prepend and -append #173

Closed
@Erwane

Description

@Erwane

This is a (multiple allowed):

  • bug

  • enhancement

  • question

  • CakePHP Version: 3.7.4

  • Plugin Version/Branch: dev-4.0.1-alpha, updated today

  • Bootstrap 4.3.1 SASS

What you did

echo $this->Form->control('username', [
    'label' => false,
    'placeholder' => __("email"),
    'prepend' => '@',
]); ?>

What happened

<div class="form-group text">
    <div class="input-group">
        <span class="input-group-addon">@</span>
        <input type="text" name="username" class="form-control" placeholder="email" id="username" />
    </div>
</div>

What you expected to happen

<div class="form-group text">
    <div class="input-group">
        <div class="input-group-prepend">
            <span class="input-group-text">@</span>
        </div>
        <input type="text" name="username" class="form-control" placeholder="email" id="username">
    </div>
</div>

Related to bootstrap 4 documentation :
https://getbootstrap.com/docs/4.0/migration/#input-groups

Thanks for you amazing work ;)

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